mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
ArduCopter: fix APM2 build
This commit is contained in:
parent
883bb7cfc0
commit
95f6357d35
@ -905,11 +905,6 @@ static uint8_t save_trim_counter;
|
||||
// Reference to the AP relay object - APM1 only
|
||||
AP_Relay relay;
|
||||
|
||||
// APM2 only
|
||||
//#if USB_MUX_PIN > 0
|
||||
//static bool usb_connected;
|
||||
//#endif
|
||||
|
||||
#if CLI_ENABLED == ENABLED
|
||||
static int8_t setup_show (uint8_t argc, const Menu::arg *argv);
|
||||
#endif
|
||||
|
@ -471,7 +471,7 @@ static bool telemetry_delayed(mavlink_channel_t chan)
|
||||
return false;
|
||||
}
|
||||
#if USB_MUX_PIN > 0
|
||||
if (chan == MAVLINK_COMM_0 && usb_connected) {
|
||||
if (chan == MAVLINK_COMM_0 && system.usb_connected) {
|
||||
// this is an APM2 with USB telemetry
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user