diff --git a/src/app.cpp b/src/app.cpp index 737116a8..1a4e248c 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -18,7 +18,6 @@ void app::setup() { while (!Serial) yield(); - resetSystem(); mSettings.setup(); diff --git a/src/app.h b/src/app.h index 32b50d34..cb0f8746 100644 --- a/src/app.h +++ b/src/app.h @@ -14,7 +14,9 @@ #include "appInterface.h" #include "hm/hmSystem.h" #include "hm/hmRadio.h" +#if defined(ESP32) #include "hms/hmsRadio.h" +#endif #include "publisher/pubMqtt.h" #include "publisher/pubSerial.h" #include "utils/crc.h" diff --git a/src/hm/hmRadio.h b/src/hm/hmRadio.h index 78a7985e..ee5d7ec6 100644 --- a/src/hm/hmRadio.h +++ b/src/hm/hmRadio.h @@ -9,6 +9,7 @@ #include #include "SPI.h" #include "radio.h" +#include "../config/config.h" #if defined(CONFIG_IDF_TARGET_ESP32S3) #include "nrfHal.h" #endif diff --git a/src/utils/spiPatcher.cpp b/src/utils/spiPatcher.cpp index c9e323b3..0470b476 100644 --- a/src/utils/spiPatcher.cpp +++ b/src/utils/spiPatcher.cpp @@ -3,7 +3,7 @@ // Creative Commons - http://creativecommons.org/licenses/by-nc-sa/3.0/de/ //----------------------------------------------------------------------------- - +#if defined(ESP32) #include "spiPatcher.h" - SpiPatcher *SpiPatcher::mInstance = nullptr; +#endif diff --git a/src/utils/spiPatcher.h b/src/utils/spiPatcher.h index 23788a90..14cb138c 100644 --- a/src/utils/spiPatcher.h +++ b/src/utils/spiPatcher.h @@ -7,6 +7,8 @@ #define __SPI_PATCHER_H__ #pragma once +#if defined(ESP32) + #include "spiPatcherHandle.h" #include @@ -81,4 +83,6 @@ class SpiPatcher { StaticSemaphore_t mutex_buffer; }; +#endif /*ESP32*/ + #endif /*__SPI_PATCHER_H__*/