small fix for compiling with framework V4.4.x

don't re-define ARDUINO_RUNNING_CORE if already defined by the framework.
This commit is contained in:
Frank
2022-09-26 15:55:44 +02:00
parent 0ed6f52c8c
commit 5c482afded

View File

@@ -961,8 +961,10 @@ class FourLineDisplayUsermod : public Usermod {
#if CONFIG_FREERTOS_UNICORE #if CONFIG_FREERTOS_UNICORE
#define ARDUINO_RUNNING_CORE 0 #define ARDUINO_RUNNING_CORE 0
#else #else
#ifndef ARDUINO_RUNNING_CORE
#define ARDUINO_RUNNING_CORE 1 #define ARDUINO_RUNNING_CORE 1
#endif #endif
#endif
void onUpdateBegin(bool init) { void onUpdateBegin(bool init) {
#ifdef ARDUINO_ARCH_ESP32 #ifdef ARDUINO_ARCH_ESP32
if (init && Display_Task) { if (init && Display_Task) {