mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Arming: move logging of armed/disarm events into AP_Arming base class
This commit is contained in:
parent
a74d754720
commit
62c0078d5f
@ -1012,6 +1012,7 @@ void AP_Arming::Log_Write_Arm(const bool forced, const AP_Arming::Method method)
|
||||
method : (uint8_t)method,
|
||||
};
|
||||
AP::logger().WriteCriticalBlock(&pkt, sizeof(pkt));
|
||||
AP::logger().Write_Event(LogEvent::ARMED);
|
||||
}
|
||||
|
||||
void AP_Arming::Log_Write_Disarm()
|
||||
@ -1025,6 +1026,7 @@ void AP_Arming::Log_Write_Disarm()
|
||||
method : 0
|
||||
};
|
||||
AP::logger().WriteCriticalBlock(&pkt, sizeof(pkt));
|
||||
AP::logger().Write_Event(LogEvent::DISARMED);
|
||||
}
|
||||
|
||||
AP_Arming *AP_Arming::_singleton = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user