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