Skip to content

Commit

Permalink
Blackbox device type 'file' (SITL) considered working when file handl…
Browse files Browse the repository at this point in the history
…er is available
  • Loading branch information
bartslinger committed Jul 14, 2024
1 parent ed4aac1 commit 934fb4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/blackbox/blackbox_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ bool isBlackboxDeviceWorking(void)
#ifdef USE_FLASHFS
case BLACKBOX_DEVICE_FLASH:
return flashfsIsReady();
#endif
#if defined(SITL_BUILD)
case BLACKBOX_DEVICE_FILE:
return blackboxFile.file_handler != NULL;
#endif
default:
return false;
Expand Down

0 comments on commit 934fb4c

Please sign in to comment.