mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_FlashStorage: reduced sector size for example
allows it to fit in SRAM on PX4
This commit is contained in:
parent
cd506834b7
commit
0e00c3cf9b
@ -16,7 +16,7 @@ public:
|
|||||||
void loop() override;
|
void loop() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint32_t flash_sector_size = 128U * 1024U;
|
static const uint32_t flash_sector_size = 32U * 1024U;
|
||||||
|
|
||||||
uint8_t mem_buffer[AP_FlashStorage::storage_size];
|
uint8_t mem_buffer[AP_FlashStorage::storage_size];
|
||||||
uint8_t mem_mirror[AP_FlashStorage::storage_size];
|
uint8_t mem_mirror[AP_FlashStorage::storage_size];
|
||||||
|
Loading…
Reference in New Issue
Block a user