mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_HAL: remove posix test from uart example
This commit is contained in:
parent
d46d2189ec
commit
9bcac597b6
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user