From d1e8cef9b65acb92404538ae46a87088376f1018 Mon Sep 17 00:00:00 2001 From: subashchandar Date: Mon, 28 Aug 2023 12:49:28 +0530 Subject: [PATCH] AP_HAL_ChibiOS: Increase limit for Storage pages STm32l4+ has 512 flash pages in dual flash mode --- libraries/AP_HAL_ChibiOS/Storage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/Storage.h b/libraries/AP_HAL_ChibiOS/Storage.h index beccd623b18a5..59266d19bb086 100644 --- a/libraries/AP_HAL_ChibiOS/Storage.h +++ b/libraries/AP_HAL_ChibiOS/Storage.h @@ -79,7 +79,7 @@ class ChibiOS::Storage : public AP_HAL::Storage { bool _flash_read_data(uint8_t sector, uint32_t offset, uint8_t *data, uint16_t length); bool _flash_erase_sector(uint8_t sector); bool _flash_erase_ok(void); - uint8_t _flash_page; + uint16_t _flash_page; bool _flash_failed; uint32_t _last_re_init_ms; uint32_t _last_empty_ms;