mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Fix CMS compiler warning
This commit is contained in:
parent
ffc58e85b9
commit
c4c9c77dce
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,9 @@ static char cmsx_BlackboxDeviceStorageFree[CMS_BLACKBOX_STRING_LENGTH];
|
||||||
static void cmsx_Blackbox_GetDeviceStatus()
|
static void cmsx_Blackbox_GetDeviceStatus()
|
||||||
{
|
{
|
||||||
char * unit = "B";
|
char * unit = "B";
|
||||||
|
#if defined(USE_SDCARD) || defined(USE_FLASHFS)
|
||||||
bool storageDeviceIsWorking = false;
|
bool storageDeviceIsWorking = false;
|
||||||
|
#endif
|
||||||
uint32_t storageUsed = 0;
|
uint32_t storageUsed = 0;
|
||||||
uint32_t storageFree = 0;
|
uint32_t storageFree = 0;
|
||||||
|
|
||||||
|
@ -148,7 +150,6 @@ static void cmsx_Blackbox_GetDeviceStatus()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
storageDeviceIsWorking = true;
|
|
||||||
snprintf(cmsx_BlackboxStatus, CMS_BLACKBOX_STRING_LENGTH, "---");
|
snprintf(cmsx_BlackboxStatus, CMS_BLACKBOX_STRING_LENGTH, "---");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue