HAL_Linux: prevent time from going backwards in Replay

This commit is contained in:
Andrew Tridgell 2015-04-20 14:04:23 +10:00
parent d7000c4105
commit 179e47c618

View File

@ -416,8 +416,10 @@ void LinuxScheduler::reboot(bool hold_in_bootloader)
void LinuxScheduler::stop_clock(uint64_t time_usec)
{
if (time_usec >= stopped_clock_usec) {
stopped_clock_usec = time_usec;
_run_io();
}
}
#endif // CONFIG_HAL_BOARD