Merge pull request #8329 from mikeller/fix_build_without_rc_smoothing

Fixed build for targets without RC smoothing.
This commit is contained in:
Michael Keller 2019-05-25 12:34:49 +12:00 committed by GitHub
commit 4e78ad02c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -241,6 +241,8 @@ static void mspFc4waySerialCommand(sbuf_t *dst, sbuf_t *src, mspPostProcessFnPtr
}
#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)
{
if (*parm != value) {
@ -248,6 +250,7 @@ static void configRebootUpdateCheckU8(uint8_t *parm, uint8_t value)
}
*parm = value;
}
#pragma GCC diagnostic pop
static void mspRebootFn(serialPort_t *serialPort)
{