Navigation Menu

Skip to content

Commit

Permalink
Fix compiler warnings if USE_BLACKBOX is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
etracer65 committed Feb 5, 2020
1 parent 97704dd commit ecd9034
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/fc/core.c
Expand Up @@ -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
Expand Down

0 comments on commit ecd9034

Please sign in to comment.