HAL_SITL: fixed cygwin build of sitl

this is needed for windows SITL build
This commit is contained in:
Andrew Tridgell 2018-12-11 09:44:05 +11:00
parent 1c6af7d777
commit 4c74d32ef3
1 changed files with 8 additions and 0 deletions

View File

@ -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);