From ecd9034b072bfbdb02750d469cecb4c57f8a9d79 Mon Sep 17 00:00:00 2001 From: Bruce Luckcuck Date: Wed, 5 Feb 2020 10:59:54 -0500 Subject: [PATCH] Fix compiler warnings if USE_BLACKBOX is not defined --- src/main/fc/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/fc/core.c b/src/main/fc/core.c index 1cb1ef2d4af..d68fb7751ad 100644 --- a/src/main/fc/core.c +++ b/src/main/fc/core.c @@ -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