diff --git a/libraries/AP_Logger/LogFile.cpp b/libraries/AP_Logger/LogFile.cpp index 2ba523a549..ebcc173b54 100644 --- a/libraries/AP_Logger/LogFile.cpp +++ b/libraries/AP_Logger/LogFile.cpp @@ -928,7 +928,7 @@ void AP_Logger::Write_Beacon(AP_Beacon &beacon) void AP_Logger::Write_Proximity(AP_Proximity &proximity) { // exit immediately if not enabled - if (proximity.get_status() == AP_Proximity::Proximity_NotConnected) { + if (proximity.get_status() == AP_Proximity::Status::NotConnected) { return; }