1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Stop Blackbox logging when flash fills up

This commit is contained in:
Nicholas Sherlock 2015-02-13 21:56:36 +13:00
parent 80ea5e4419
commit 3b8e05fb46
5 changed files with 41 additions and 3 deletions

View file

@ -1129,6 +1129,11 @@ void handleBlackbox(void)
default:
break;
}
// Did we run out of room on the device? Stop!
if (isBlackboxDeviceFull()) {
blackboxSetState(BLACKBOX_STATE_STOPPED);
}
}
static bool canUseBlackboxWithCurrentConfiguration(void)