From 953765cc0f1cf139848962d17656953ff5aee021 Mon Sep 17 00:00:00 2001 From: Ray Ozzie Date: Tue, 10 Nov 2026 13:37:42 -0500 Subject: [PATCH] chore: remove "only BCD mode is supported" build warning On series whose RTC has no binary mode, setBinaryMode() emitted a compile-time #warning. Because STM32RTC.cpp is compiled in every build, this fired on every build for every sketch using the library, whether or not it called setBinaryMode() or asked for anything other than BCD. The runtime behavior is unchanged: on these series the mode is still forced to MODE_BCD, and getBinaryMode() reports the mode in effect. Fixes #127 Co-Authored-By: Claude Opus 5.5 --- src/STM32RTC.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/STM32RTC.cpp b/src/STM32RTC.cpp index adf3e07..3d7e71f 100644 --- a/src/STM32RTC.cpp +++ b/src/STM32RTC.cpp @@ -176,7 +176,6 @@ void STM32RTC::setBinaryMode(Binary_Mode mode) #if defined(LL_RTC_BINARY_NONE) _mode = mode; #else -#warning "only BCD mode is supported" UNUSED(mode); _mode = MODE_BCD; #endif /* LL_RTC_BINARY_NONE */