Browse Source

HAL_ChibiOS: fixed timer reset

mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
ed3194d095
  1. 1
      libraries/AP_HAL_ChibiOS/Scheduler.cpp

1
libraries/AP_HAL_ChibiOS/Scheduler.cpp

@ -359,6 +359,7 @@ void Scheduler::_io_thread(void* arg) @@ -359,6 +359,7 @@ void Scheduler::_io_thread(void* arg)
// thread when disarmed
uint32_t now = AP_HAL::millis();
if (now - last_sd_start_ms > 3000) {
last_sd_start_ms = now;
sdcard_retry();
}
}

Loading…
Cancel
Save