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

Merge pull request #9453 from etracer65/use_blackbox_compiler_warning

Fix compiler warnings if USE_BLACKBOX is not defined
This commit is contained in:
Michael Keller 2020-02-07 09:55:35 +13:00 committed by GitHub
commit 11e81a9bc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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