1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Require explicit usage of firmware partition for EXST targets. (#12299)

Require explicit usage of firmware partition in preparation for memory
mapped EXST targets with a second flash chip for data storage and
config.
This commit is contained in:
Dominic Clifton 2023-02-21 13:30:18 +01:00 committed by GitHub
parent 1ff78c6aac
commit c1c1f95578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,7 +519,7 @@ static void flashConfigurePartitions(void)
}
#endif
#if defined(FIRMWARE_SIZE)
#if defined(FIRMWARE_SIZE) && defined(USE_FIRMWARE_PARTITION)
const uint32_t firmwareSize = (FIRMWARE_SIZE * 1024);
flashSector_t firmwareSectors = (firmwareSize / flashGeometry->sectorSize);