1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

Merge pull request #2125 from mikeller/fix_unused_variable_warning

Fixed 'unused variable' warning in 'fc_msp'.
This commit is contained in:
Michael Keller 2017-01-16 07:43:22 +13:00 committed by GitHub
commit a096b72b68

View file

@ -1237,7 +1237,6 @@ static void mspFcDataFlashReadCommand(sbuf_t *dst, sbuf_t *src)
static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
{
uint32_t i;
uint16_t tmp;
uint8_t value;
const unsigned int dataSize = sbufBytesRemaining(src);
#ifdef GPS
@ -1636,7 +1635,8 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
#ifdef USE_RTC6705
case MSP_SET_VTX_CONFIG:
tmp = sbufReadU16(src);
;
uint16_t tmp = sbufReadU16(src);
if (tmp < 40)
masterConfig.vtx_channel = tmp;
if (current_vtx_channel != masterConfig.vtx_channel) {