mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
HAL_SITL: fixed cygwin build of sitl
this is needed for windows SITL build
This commit is contained in:
parent
1c6af7d777
commit
4c74d32ef3
@ -44,6 +44,14 @@ uint32_t millis()
|
||||
return millis64() & 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
/*
|
||||
we define a millis16() here to avoid an issue with sitl builds in cygwin
|
||||
*/
|
||||
uint16_t millis16()
|
||||
{
|
||||
return millis64() & 0xFFFF;
|
||||
}
|
||||
|
||||
uint64_t micros64()
|
||||
{
|
||||
const HALSITL::Scheduler* scheduler = HALSITL::Scheduler::from(hal.scheduler);
|
||||
|
Loading…
Reference in New Issue
Block a user