Copter: unify singleton naming to _singleton and get_singleton()

This commit is contained in:
Tom Pittenger 2019-02-10 10:34:44 -08:00 committed by Tom Pittenger
parent 3415d309ea
commit b8ee535fb4

View File

@ -957,7 +957,7 @@ void ToyMode::handle_message(mavlink_message_t *msg)
AP_Notify::flags.video_recording = 1;
} else if (strncmp(m.name, "WIFICHAN", 10) == 0) {
#if HAL_RCINPUT_WITH_AP_RADIO
AP_Radio *radio = AP_Radio::instance();
AP_Radio *radio = AP_Radio::get_singleton();
if (radio) {
radio->set_wifi_channel(m.value);
}