1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Fix compiler warnings if USE_BLACKBOX is not defined

This commit is contained in:
Bruce Luckcuck 2020-02-05 10:59:54 -05:00
parent 97704dda58
commit ecd9034b07

View file

@ -447,6 +447,8 @@ void disarm(flightLogDisarmReason_e reason)
if (blackboxConfig()->device && blackboxConfig()->mode != BLACKBOX_MODE_ALWAYS_ON) { // Close the log upon disarm except when logging mode is ALWAYS ON
blackboxFinish();
}
#else
UNUSED(reason);
#endif
BEEP_OFF;
#ifdef USE_DSHOT