AP_Airspeed: unify singleton naming to _singleton and get_singleton()

This commit is contained in:
Tom Pittenger 2019-02-10 10:33:25 -08:00 committed by Tom Pittenger
parent 13f0ad8a1c
commit 0c32453505
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -197,7 +197,7 @@ void AP_Airspeed_SDP3X::_timer()
float AP_Airspeed_SDP3X::_correct_pressure(float press)
{
float temperature;
AP_Baro *baro = AP_Baro::get_instance();
AP_Baro *baro = AP_Baro::get_singleton();
if (baro == nullptr) {
return press;