Fix bug in get_trailer_at()

pull/297/head
Daniele Lacamera 2023-04-13 19:17:21 +02:00
parent f008ebf606
commit 48496c3568
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ static uint8_t* RAMFUNCTION get_trailer_at(uint8_t part, uint32_t at)
{ {
uint32_t sel_sec = 0; uint32_t sel_sec = 0;
#ifdef NVM_FLASH_WRITEONCE #ifdef NVM_FLASH_WRITEONCE
nvm_select_fresh_sector(part); sel_sec = nvm_select_fresh_sector(part);
#endif #endif
if (part == PART_BOOT) { if (part == PART_BOOT) {
if (FLAGS_BOOT_EXT()){ if (FLAGS_BOOT_EXT()){