mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
Scheduler: fix compiler warning in example sketch
printf except a unsigned long value, but the hal.scheduler->millis() return a uint32_t
This commit is contained in:
parent
0c9cec7958
commit
ad32a98e29
@ -112,7 +112,7 @@ void SchedTest::ins_update(void)
|
||||
*/
|
||||
void SchedTest::one_hz_print(void)
|
||||
{
|
||||
hal.console->printf("one_hz: t=%lu\n", hal.scheduler->millis());
|
||||
hal.console->printf("one_hz: t=%lu\n", (unsigned long)hal.scheduler->millis());
|
||||
}
|
||||
|
||||
/*
|
||||
@ -120,7 +120,7 @@ void SchedTest::one_hz_print(void)
|
||||
*/
|
||||
void SchedTest::five_second_call(void)
|
||||
{
|
||||
hal.console->printf("five_seconds: t=%lu ins_counter=%u\n", hal.scheduler->millis(), ins_counter);
|
||||
hal.console->printf("five_seconds: t=%lu ins_counter=%u\n", (unsigned long)hal.scheduler->millis(), ins_counter);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user