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
#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) {