AP_IOMCU: log regardless of success reading status page

This commit is contained in:
Peter Barker 2022-08-07 16:37:31 +10:00 committed by Andrew Tridgell
parent 0be9c83692
commit 605f42947e
1 changed files with 1 additions and 2 deletions

View File

@ -242,6 +242,7 @@ void AP_IOMCU::thread_main(void)
// read status at 20Hz // read status at 20Hz
read_status(); read_status();
last_status_read_ms = AP_HAL::millis(); last_status_read_ms = AP_HAL::millis();
write_log();
} }
if (now - last_servo_read_ms > 50) { if (now - last_servo_read_ms > 50) {
@ -350,8 +351,6 @@ void AP_IOMCU::read_status()
force_safety_off(); force_safety_off();
} }
} }
write_log();
} }
void AP_IOMCU::write_log() void AP_IOMCU::write_log()