From f28623dacdfb296b7b66b6e8e8e012ca54019b2f Mon Sep 17 00:00:00 2001 From: Dave Allie Date: Sun, 22 Feb 2026 20:56:13 +1100 Subject: [PATCH] chore: Resolve several build warnings (#1076) ## Summary * Resolve several build warnings --- ### AI Usage While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it helps set the right context for reviewers. Did you use AI tools to help write this code? No --- lib/Logging/Logging.h | 5 ++++- platformio.ini | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Logging/Logging.h b/lib/Logging/Logging.h index c8fce031..cbc7f86c 100644 --- a/lib/Logging/Logging.h +++ b/lib/Logging/Logging.h @@ -68,4 +68,7 @@ class MySerialImpl : public Print { static MySerialImpl instance; }; -#define Serial MySerialImpl::instance \ No newline at end of file +#ifdef Serial +#undef Serial +#endif +#define Serial MySerialImpl::instance diff --git a/platformio.ini b/platformio.ini index 3d199890..ab3b7656 100644 --- a/platformio.ini +++ b/platformio.ini @@ -35,6 +35,7 @@ build_flags = # Increase PNG scanline buffer to support up to 2048px wide images # Default is (320*4+1)*2=2562, we need more for larger images -DPNG_MAX_BUFFERED_PIXELS=16416 + -Wno-bidi-chars build_unflags = -std=gnu++11 @@ -91,4 +92,3 @@ build_flags = -DCROSSPOINT_VERSION=\"${crosspoint.version}-slim\" ; serial output is disabled in slim builds to save space -UENABLE_SERIAL_LOG - \ No newline at end of file