AP_Airspeed: rename dataflash to logger

This commit is contained in:
Tom Pittenger 2019-02-11 00:15:59 -08:00 committed by Peter Barker
parent a577223ac6
commit e67b6e15fa

View File

@ -457,9 +457,9 @@ void AP_Airspeed::update(bool log)
check_sensor_failures();
if (log) {
AP_Logger *_dataflash = AP_Logger::get_singleton();
if (_dataflash != nullptr) {
_dataflash->Write_Airspeed(*this);
AP_Logger *logger = AP_Logger::get_singleton();
if (logger != nullptr) {
logger->Write_Airspeed(*this);
}
}
}