From 64c60c8149d12f9073666741e6085bc5497a2841 Mon Sep 17 00:00:00 2001 From: murata Date: Wed, 14 Sep 2022 23:54:48 +0900 Subject: [PATCH] AP_HAL_SITL: Accurate 10 counts --- libraries/AP_HAL_SITL/HAL_SITL_Class.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp b/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp index cd9e8e7680..d9a6c71867 100644 --- a/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp +++ b/libraries/AP_HAL_SITL/HAL_SITL_Class.cpp @@ -272,6 +272,7 @@ void HAL_SITL::run(int argc, char * const argv[], Callbacks* callbacks) const if (fill_count++ % 10 == 0) { // only fill every 10 loops. This still gives us a lot of // protection, but saves a lot of CPU + fill_count = 1u; fill_stack_nan(); } callbacks->loop();