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