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

Fixes for some further FLASH cloud build errors.

This commit is contained in:
blckmn 2022-10-31 15:10:19 +11:00
parent 455965aa40
commit af99690cda
2 changed files with 5 additions and 6 deletions

View file

@ -332,7 +332,7 @@ const flashGeometry_t *flashGetGeometry(void)
static void flashConfigurePartitions(void)
{
#if defined(FIRMWARE_SIZE) || defined(CONFIG_IN_EXTERNAL_FLASH) || defined(USE_FLASHFS)
const flashGeometry_t *flashGeometry = flashGetGeometry();
if (flashGeometry->totalSize == 0) {
return;
@ -345,6 +345,7 @@ static void flashConfigurePartitions(void)
if (badBlockPartition) {
endSector = badBlockPartition->startSector - 1;
}
#endif
#if defined(FIRMWARE_SIZE)
const uint32_t firmwareSize = (FIRMWARE_SIZE * 1024);