From 934fb4c777f89f752793135f8ffb8c7b3c11f93b Mon Sep 17 00:00:00 2001 From: Bart Slinger Date: Sun, 14 Jul 2024 10:55:36 +0800 Subject: [PATCH] Blackbox device type 'file' (SITL) considered working when file handler is available --- src/main/blackbox/blackbox_io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/blackbox/blackbox_io.c b/src/main/blackbox/blackbox_io.c index 36a9750be..b344b0dff 100644 --- a/src/main/blackbox/blackbox_io.c +++ b/src/main/blackbox/blackbox_io.c @@ -584,6 +584,10 @@ bool isBlackboxDeviceWorking(void) case BLACKBOX_DEVICE_FLASH: return flashfsIsReady(); #endif +#if defined(SITL_BUILD) + case BLACKBOX_DEVICE_FILE: + return blackboxFile.file_handler != NULL; +#endif default: return false; } -- 2.11.4.GIT