AP_FlashStorage: fixed size of flash storage

This commit is contained in:
Andrew Tridgell
2018-01-15 11:46:02 +11:00
parent 0bfbc4bf72
commit 3b5f66fd9f
+1 -1
View File
@@ -45,7 +45,7 @@
class AP_FlashStorage {
private:
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;
public: