Fix build for non-pico boards.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
0b49fe4e1b
commit
6f6004c57b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue