mirror of https://github.com/ArduPilot/ardupilot
AP_IOMCU: break logging out as a method
This commit is contained in:
parent
f3cd5a9a38
commit
0be9c83692
|
@ -351,6 +351,11 @@ void AP_IOMCU::read_status()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
write_log();
|
||||||
|
}
|
||||||
|
|
||||||
|
void AP_IOMCU::write_log()
|
||||||
|
{
|
||||||
uint32_t now = AP_HAL::millis();
|
uint32_t now = AP_HAL::millis();
|
||||||
if (now - last_log_ms >= 1000U) {
|
if (now - last_log_ms >= 1000U) {
|
||||||
last_log_ms = now;
|
last_log_ms = now;
|
||||||
|
|
|
@ -269,6 +269,8 @@ private:
|
||||||
void handle_repeated_failures();
|
void handle_repeated_failures();
|
||||||
void check_iomcu_reset();
|
void check_iomcu_reset();
|
||||||
|
|
||||||
|
void write_log(); // handle onboard logging
|
||||||
|
|
||||||
static AP_IOMCU *singleton;
|
static AP_IOMCU *singleton;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
|
Loading…
Reference in New Issue