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:
parent
455965aa40
commit
af99690cda
2 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue