AP_HAL_SITL: Accurate 10 counts

This commit is contained in:
murata 2022-09-14 23:54:48 +09:00 committed by Peter Barker
parent e1ec24f25d
commit 64c60c8149

View File

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