CF/BF - Fix 'unused variable disableRunawayTakeoff' warning when

building CJMCU.
This commit is contained in:
Hydra 2018-03-03 01:29:35 +01:00 committed by Dominic Clifton
parent bd20c822bd
commit 2c12a8fe52
1 changed files with 3 additions and 0 deletions

View File

@ -1773,6 +1773,9 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
{
const uint8_t command = sbufReadU8(src);
uint8_t disableRunawayTakeoff = 0;
#ifndef USE_RUNAWAY_TAKEOFF
UNUSED(disableRunawayTakeoff);
#endif
if (sbufBytesRemaining(src)) {
disableRunawayTakeoff = sbufReadU8(src);
}