From 3c2dc6e7ea6a958a736dedb661e81f3455b57bf2 Mon Sep 17 00:00:00 2001 From: Sonnengruesser <36325150+Sonnengruesser@users.noreply.github.com> Date: Sat, 15 Oct 2022 12:24:20 +0200 Subject: [PATCH] RP2040 EEPROM/Flash compiler flag fix only check flash size if Flash is used, not EEPROM --- src/rp2040_arduino_platform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rp2040_arduino_platform.cpp b/src/rp2040_arduino_platform.cpp index 7392223..0374e85 100644 --- a/src/rp2040_arduino_platform.cpp +++ b/src/rp2040_arduino_platform.cpp @@ -35,6 +35,7 @@ A RAM-buffered Flash can be use by defining USE_RP2040_LARGE_EEPROM_EMULATION #define FLASHPTR ((uint8_t*)XIP_BASE + KNX_FLASH_OFFSET) +#ifndef USE_RP2040_EEPROM_EMULATION #if KNX_FLASH_SIZE%4096 #error "KNX_FLASH_SIZE must be multiple of 4096" #endif @@ -42,6 +43,7 @@ A RAM-buffered Flash can be use by defining USE_RP2040_LARGE_EEPROM_EMULATION #if KNX_FLASH_OFFSET%4096 #error "KNX_FLASH_OFFSET must be multiple of 4096" #endif +#endif #ifndef KNX_SERIAL #define KNX_SERIAL Serial1