fix: char[] for DW1000 addr, suppress -Werror=return-type in lib

This commit is contained in:
salty 2026-03-14 12:31:40 -04:00
parent ed1542ae11
commit 30e012255f
4 changed files with 5 additions and 3 deletions

View File

@ -14,6 +14,7 @@ upload_speed = 921600
lib_extra_dirs = ../../lib lib_extra_dirs = ../../lib
build_flags = build_flags =
-DCORE_DEBUG_LEVEL=0 -DCORE_DEBUG_LEVEL=0
-Wno-error=return-type
[env:anchor0] [env:anchor0]
extends = common extends = common

View File

@ -37,9 +37,9 @@
/* Unique DW1000 address per anchor (last 2 bytes differ) */ /* Unique DW1000 address per anchor (last 2 bytes differ) */
#if ANCHOR_ID == 0 #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 #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 #endif
/* ── Pins (ESP32 UWB Pro, no display) ──────────────────────────── */ /* ── Pins (ESP32 UWB Pro, no display) ──────────────────────────── */

View File

@ -17,3 +17,4 @@ lib_deps =
build_flags = build_flags =
-DCORE_DEBUG_LEVEL=0 -DCORE_DEBUG_LEVEL=0
-DTAG_ID=0x01 -DTAG_ID=0x01
-Wno-error=return-type

View File

@ -44,7 +44,7 @@
# define TAG_ID 0x01 # define TAG_ID 0x01
#endif #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 SERIAL_BAUD 115200
#define NUM_ANCHORS 2 #define NUM_ANCHORS 2