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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user