AP_FlashStorage: fixed size of flash storage

This commit is contained in:
Andrew Tridgell 2017-11-14 20:54:07 +11:00
parent 0bfbc4bf72
commit 3b5f66fd9f

View File

@ -45,7 +45,7 @@
class AP_FlashStorage { class AP_FlashStorage {
private: private:
static const uint8_t block_size = 8; static const uint8_t block_size = 8;
static const uint16_t num_blocks = 2048; static const uint16_t num_blocks = HAL_STORAGE_SIZE / block_size;
static const uint8_t max_write = 64; static const uint8_t max_write = 64;
public: public: