From b2029f7a35f524869e5318e74075450c6b32e3dd Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 5 Apr 2016 16:34:45 -0700 Subject: [PATCH] POSIX: Fix code style of main app --- src/platforms/posix/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/posix/main.cpp b/src/platforms/posix/main.cpp index 903aa42901..fe12f233d3 100644 --- a/src/platforms/posix/main.cpp +++ b/src/platforms/posix/main.cpp @@ -165,7 +165,8 @@ static void restore_term(void) tcsetattr(0, TCSANOW, &orig_term); } -bool px4_exit_requested(void) { +bool px4_exit_requested(void) +{ return _ExitFlag; } @@ -245,6 +246,7 @@ int main(int argc, char **argv) if (px4_exit_requested()) { break; } + // TODO: this should be true but for that we have to check all startup files process_line(line, false); }