AP_Parachute: cope with change in namespace of LogEvent enum

This commit is contained in:
Peter Barker 2019-10-25 17:04:37 +11:00 committed by Randy Mackay
parent f337d011e7
commit 04c005a213

View File

@ -83,7 +83,7 @@ void AP_Parachute::enabled(bool on_off)
// clear release_time // clear release_time
_release_time = 0; _release_time = 0;
AP::logger().Write_Event(_enabled ? DATA_PARACHUTE_ENABLED : DATA_PARACHUTE_DISABLED); AP::logger().Write_Event(_enabled ? LogEvent::PARACHUTE_ENABLED : LogEvent::PARACHUTE_DISABLED);
} }
/// release - release parachute /// release - release parachute
@ -95,7 +95,7 @@ void AP_Parachute::release()
} }
gcs().send_text(MAV_SEVERITY_INFO,"Parachute: Released"); gcs().send_text(MAV_SEVERITY_INFO,"Parachute: Released");
AP::logger().Write_Event(DATA_PARACHUTE_RELEASED); AP::logger().Write_Event(LogEvent::PARACHUTE_RELEASED);
// set release time to current system time // set release time to current system time
if (_release_time == 0) { if (_release_time == 0) {