AP_HAL: remove posix test from uart example

This commit is contained in:
Peter Barker 2023-05-15 13:55:53 +10:00 committed by Peter Barker
parent d46d2189ec
commit 9bcac597b6

View File

@ -4,9 +4,7 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if AP_FILESYSTEM_POSIX_ENABLED
#include <stdio.h> #include <stdio.h>
#endif
void setup(); void setup();
void loop(); void loop();
@ -61,9 +59,7 @@ void loop(void)
// also do a raw printf() on some platforms, which prints to the // also do a raw printf() on some platforms, which prints to the
// debug console // debug console
#if AP_FILESYSTEM_POSIX_ENABLED
::printf("Hello on debug console at %.3f seconds\n", (double)(AP_HAL::millis() * 0.001f)); ::printf("Hello on debug console at %.3f seconds\n", (double)(AP_HAL::millis() * 0.001f));
#endif
hal.scheduler->delay(1000); hal.scheduler->delay(1000);
} }