From 5c482afded2dbfd94a24f493b8da305ae32d2eae Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 26 Sep 2022 15:55:44 +0200 Subject: [PATCH] small fix for compiling with framework V4.4.x don't re-define ARDUINO_RUNNING_CORE if already defined by the framework. --- .../usermod_v2_four_line_display_ALT.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h index 2c373158..7555933f 100644 --- a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h +++ b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h @@ -961,8 +961,10 @@ class FourLineDisplayUsermod : public Usermod { #if CONFIG_FREERTOS_UNICORE #define ARDUINO_RUNNING_CORE 0 #else + #ifndef ARDUINO_RUNNING_CORE #define ARDUINO_RUNNING_CORE 1 #endif + #endif void onUpdateBegin(bool init) { #ifdef ARDUINO_ARCH_ESP32 if (init && Display_Task) {