AP_Proximity: log if any drivers created
allows logging even if only 2nd proximity sensor is configured
This commit is contained in:
parent
436f77d673
commit
826cf558eb
@ -308,8 +308,8 @@ void AP_Proximity::set_rangefinder_alt(bool use, bool healthy, float alt_cm)
|
||||
// Write proximity sensor distances
|
||||
void AP_Proximity::log()
|
||||
{
|
||||
// exit immediately if not enabled
|
||||
if (get_status() == AP_Proximity::Status::NotConnected) {
|
||||
// exit immediately if no sensors
|
||||
if (num_sensors() == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user