From a04525d7181b8041fd0eeeec819d685242d28f0e Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 9 Jun 2021 16:04:50 +0200 Subject: [PATCH] _internal::LEDModeManager: Do not redefine `new` on STM32 We do not need to redefine `new` on STM32, as it is included in the standard library, and defining it ourselves would lead to linking errors. Signed-off-by: Gergely Nagy --- src/kaleidoscope_internal/LEDModeManager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kaleidoscope_internal/LEDModeManager.h b/src/kaleidoscope_internal/LEDModeManager.h index 28ea5f49..835ffca6 100644 --- a/src/kaleidoscope_internal/LEDModeManager.h +++ b/src/kaleidoscope_internal/LEDModeManager.h @@ -23,7 +23,7 @@ #include -#ifdef KALEIDOSCOPE_VIRTUAL_BUILD +#if defined(KALEIDOSCOPE_VIRTUAL_BUILD) || defined(ARDUINO_ARCH_STM32) #include #else