ArduCopter: fix APM2 build

This commit is contained in:
rmackay9 2012-11-10 22:06:23 +09:00
parent 883bb7cfc0
commit 95f6357d35
2 changed files with 1 additions and 6 deletions

View File

@ -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

View File

@ -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;
}