mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_KDECAN: unify singleton naming to _singleton and get_singleton()
This commit is contained in:
parent
1c33c3f50d
commit
98030c04b2
@ -600,7 +600,7 @@ void AP_KDECAN::update()
|
|||||||
debug_can(2, "KDECAN: failed to get PWM semaphore on write\n\r");
|
debug_can(2, "KDECAN: failed to get PWM semaphore on write\n\r");
|
||||||
}
|
}
|
||||||
|
|
||||||
AP_Logger *df = AP_Logger::instance();
|
AP_Logger *df = AP_Logger::get_singleton();
|
||||||
|
|
||||||
if (df == nullptr || !df->should_log(0xFFFFFFFF)) {
|
if (df == nullptr || !df->should_log(0xFFFFFFFF)) {
|
||||||
return;
|
return;
|
||||||
@ -658,7 +658,7 @@ bool AP_KDECAN::pre_arm_check(const char* &reason)
|
|||||||
_enum_sem.give();
|
_enum_sem.give();
|
||||||
|
|
||||||
uint16_t motors_mask = 0;
|
uint16_t motors_mask = 0;
|
||||||
AP_Motors *motors = AP_Motors::get_instance();
|
AP_Motors *motors = AP_Motors::get_singleton();
|
||||||
|
|
||||||
if (motors) {
|
if (motors) {
|
||||||
motors_mask = motors->get_motor_mask();
|
motors_mask = motors->get_motor_mask();
|
||||||
|
Loading…
Reference in New Issue
Block a user