From c58404beaca00935605085e530d4c774432b5c9e Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Fri, 22 Apr 2022 17:22:00 +0100 Subject: [PATCH] AP_HAL_Linux: allow stop_clock in examples --- libraries/AP_HAL_Linux/Scheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/Scheduler.cpp b/libraries/AP_HAL_Linux/Scheduler.cpp index 82ed1dc28f..b8a8f48706 100644 --- a/libraries/AP_HAL_Linux/Scheduler.cpp +++ b/libraries/AP_HAL_Linux/Scheduler.cpp @@ -325,7 +325,7 @@ void Scheduler::reboot(bool hold_in_bootloader) exit(1); } -#if APM_BUILD_TYPE(APM_BUILD_Replay) +#if APM_BUILD_TYPE(APM_BUILD_Replay) || APM_BUILD_TYPE(APM_BUILD_UNKNOWN) void Scheduler::stop_clock(uint64_t time_usec) { if (time_usec < _stopped_clock_usec) {