diff --git a/libraries/AP_RCProtocol/AP_RCProtocol_GHST.cpp b/libraries/AP_RCProtocol/AP_RCProtocol_GHST.cpp index 9004355d8c..66493ed88d 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol_GHST.cpp +++ b/libraries/AP_RCProtocol/AP_RCProtocol_GHST.cpp @@ -280,6 +280,7 @@ bool AP_RCProtocol_GHST::decode_ghost_packet() const RadioFrame* radio_frame = (const RadioFrame*)(&_frame.payload); const Channels12Bit_4Chan* channels = &(radio_frame->channels); const uint8_t* lowres_channels = radio_frame->lowres_channels; + bool rc_frame = false; // Scaling from Betaflight // Scaling 12bit channels (8bit channels in brackets) @@ -328,6 +329,7 @@ bool AP_RCProtocol_GHST::decode_ghost_packet() _channels[offset++] = CHANNEL_LR_SCALE_LEGACY(lowres_channels[1]); _channels[offset++] = CHANNEL_LR_SCALE_LEGACY(lowres_channels[2]); _channels[offset++] = CHANNEL_LR_SCALE_LEGACY(lowres_channels[3]); + rc_frame = true; break; } case GHST_UL_RC_CHANS_HS4_12_5TO8: @@ -338,6 +340,7 @@ bool AP_RCProtocol_GHST::decode_ghost_packet() _channels[offset++] = CHANNEL_LR_SCALE(lowres_channels[1]); _channels[offset++] = CHANNEL_LR_SCALE(lowres_channels[2]); _channels[offset++] = CHANNEL_LR_SCALE(lowres_channels[3]); + rc_frame = true; break; } case GHST_UL_RC_CHANS_RSSI: @@ -355,7 +358,7 @@ bool AP_RCProtocol_GHST::decode_ghost_packet() } #endif - return true; + return rc_frame; } // send out telemetry