Fix build for non-pico boards.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2025-09-23 00:02:20 +02:00
parent 0b49fe4e1b
commit 6f6004c57b

View File

@@ -311,7 +311,7 @@ uint8_t *flash_read(uintptr_t addr) {
}
uint8_t *v = (uint8_t *) addr;
mutex_exit(&mtx_flash);
#if defined(ENABLE_EMULATION) || defined(ESP_PLATFORM)
#if !defined(PICO_PLATFORM)
if (addr >= start_data_pool && addr <= end_rom_pool + sizeof(uintptr_t)) {
v += (uintptr_t) map;
}