diff --git a/esp32/uwb_anchor/platformio.ini b/esp32/uwb_anchor/platformio.ini index a4f32c2..3d72e68 100644 --- a/esp32/uwb_anchor/platformio.ini +++ b/esp32/uwb_anchor/platformio.ini @@ -14,6 +14,7 @@ upload_speed = 921600 lib_extra_dirs = ../../lib build_flags = -DCORE_DEBUG_LEVEL=0 + -Wno-error=return-type [env:anchor0] extends = common diff --git a/esp32/uwb_anchor/src/main.cpp b/esp32/uwb_anchor/src/main.cpp index 40f7ab6..c208949 100644 --- a/esp32/uwb_anchor/src/main.cpp +++ b/esp32/uwb_anchor/src/main.cpp @@ -37,9 +37,9 @@ /* Unique DW1000 address per anchor (last 2 bytes differ) */ #if ANCHOR_ID == 0 -# define ANCHOR_ADDR "86:17:5B:D5:A9:9A:E2:00" +static char ANCHOR_ADDR[] = "86:17:5B:D5:A9:9A:E2:00"; #else -# define ANCHOR_ADDR "86:17:5B:D5:A9:9A:E2:01" +static char ANCHOR_ADDR[] = "86:17:5B:D5:A9:9A:E2:01"; #endif /* ── Pins (ESP32 UWB Pro, no display) ──────────────────────────── */ diff --git a/esp32/uwb_tag/platformio.ini b/esp32/uwb_tag/platformio.ini index e4ca342..765e959 100644 --- a/esp32/uwb_tag/platformio.ini +++ b/esp32/uwb_tag/platformio.ini @@ -17,3 +17,4 @@ lib_deps = build_flags = -DCORE_DEBUG_LEVEL=0 -DTAG_ID=0x01 + -Wno-error=return-type diff --git a/esp32/uwb_tag/src/main.cpp b/esp32/uwb_tag/src/main.cpp index 375222d..0f0f737 100644 --- a/esp32/uwb_tag/src/main.cpp +++ b/esp32/uwb_tag/src/main.cpp @@ -44,7 +44,7 @@ # define TAG_ID 0x01 #endif -#define TAG_ADDR "7D:00:22:EA:82:60:3B:9B" +static char TAG_ADDR[] = "7D:00:22:EA:82:60:3B:9B"; #define SERIAL_BAUD 115200 #define NUM_ANCHORS 2