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

Fixed build for targets without RC smoothing.

This commit is contained in:
mikeller 2019-05-22 21:02:24 +12:00
parent 1541466dac
commit 2d184359a0

View file

@ -241,6 +241,8 @@ static void mspFc4waySerialCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessFnPtr
} }
#endif //USE_SERIAL_4WAY_BLHELI_INTERFACE #endif //USE_SERIAL_4WAY_BLHELI_INTERFACE
// TODO: Remove the pragma once this is called from unconditional code
#pragma GCC diagnostic ignored "-Wunused-function"
static void configRebootUpdateCheckU8(uint8_t *parm, uint8_t value) static void configRebootUpdateCheckU8(uint8_t *parm, uint8_t value)
{ {
if (*parm != value) { if (*parm != value) {
@ -248,6 +250,7 @@ static void configRebootUpdateCheckU8(uint8_t *parm, uint8_t value)
} }
*parm = value; *parm = value;
} }
#pragma GCC diagnostic pop
static void mspRebootFn(serialPort_t *serialPort) static void mspRebootFn(serialPort_t *serialPort)
{ {