1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Fix CMS compiler warning

This commit is contained in:
Martin Budden 2017-02-10 16:53:12 +00:00 committed by borisbstyle
parent ffc58e85b9
commit c4c9c77dce

View file

@ -90,7 +90,9 @@ static char cmsx_BlackboxDeviceStorageFree[CMS_BLACKBOX_STRING_LENGTH];
static void cmsx_Blackbox_GetDeviceStatus()
{
char * unit = "B";
#if defined(USE_SDCARD) || defined(USE_FLASHFS)
bool storageDeviceIsWorking = false;
#endif
uint32_t storageUsed = 0;
uint32_t storageFree = 0;
@ -148,7 +150,6 @@ static void cmsx_Blackbox_GetDeviceStatus()
#endif
default:
storageDeviceIsWorking = true;
snprintf(cmsx_BlackboxStatus, CMS_BLACKBOX_STRING_LENGTH, "---");
}