Fixed 'unused variable' warning in 'fc_msp'.

This commit is contained in:
mikeller 2017-01-16 00:07:46 +13:00
parent 8c571aff9e
commit 10d475c3c9
1 changed files with 2 additions and 2 deletions

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) {