enable more compiler warnings

This commit is contained in:
Martin Brodbeck 2024-02-13 09:11:28 +01:00
parent 6970ca8182
commit c88d712a9f
2 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@ namespace
void flash_store_callback(void *settings)
{
int writeSize = (sizeof(struct Settings) / FLASH_PAGE_SIZE) + 1;
//int writeSize = (sizeof(struct Settings) / FLASH_PAGE_SIZE) + 1;
flash_range_erase(FLASH_TARGET_OFFSET, FLASH_SECTOR_SIZE);
flash_range_program(FLASH_TARGET_OFFSET, (uint8_t *)settings, FLASH_PAGE_SIZE);