mirror of https://github.com/ArduPilot/ardupilot
AP_OpticalFlow: unify singleton naming to _singleton and get_singleton()
This commit is contained in:
parent
3d2c7346cc
commit
699b7b9788
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue