AP_OpticalFlow: unify singleton naming to _singleton and get_singleton()

This commit is contained in:
Tom Pittenger 2019-02-10 10:03:15 -08:00 committed by Tom Pittenger
parent 3d2c7346cc
commit 699b7b9788
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ AP_OpticalFlow_CXOF::AP_OpticalFlow_CXOF(OpticalFlow &_frontend, AP_HAL::UARTDri
// detect the device
AP_OpticalFlow_CXOF *AP_OpticalFlow_CXOF::detect(OpticalFlow &_frontend)
{
AP_SerialManager *serial_manager = AP::serialmanager().get_instance();
AP_SerialManager *serial_manager = AP::serialmanager().get_singleton();
if (serial_manager == nullptr) {
return nullptr;
}

View File

@ -156,7 +156,7 @@ void OpticalFlow::update_state(const OpticalFlow_state &state)
void OpticalFlow::Log_Write_Optflow()
{
AP_Logger *instance = AP_Logger::instance();
AP_Logger *instance = AP_Logger::get_singleton();
if (instance == nullptr) {
return;
}