Browse Source

fix compile for ESP8266

pull/1262/head
lumapu 10 months ago
parent
commit
bf5fe900da
  1. 1
      src/app.cpp
  2. 2
      src/app.h
  3. 1
      src/hm/hmRadio.h
  4. 4
      src/utils/spiPatcher.cpp
  5. 4
      src/utils/spiPatcher.h

1
src/app.cpp

@ -18,7 +18,6 @@ void app::setup() {
while (!Serial)
yield();
resetSystem();
mSettings.setup();

2
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"

1
src/hm/hmRadio.h

@ -9,6 +9,7 @@
#include <RF24.h>
#include "SPI.h"
#include "radio.h"
#include "../config/config.h"
#if defined(CONFIG_IDF_TARGET_ESP32S3)
#include "nrfHal.h"
#endif

4
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

4
src/utils/spiPatcher.h

@ -7,6 +7,8 @@
#define __SPI_PATCHER_H__
#pragma once
#if defined(ESP32)
#include "spiPatcherHandle.h"
#include <driver/spi_master.h>
@ -81,4 +83,6 @@ class SpiPatcher {
StaticSemaphore_t mutex_buffer;
};
#endif /*ESP32*/
#endif /*__SPI_PATCHER_H__*/

Loading…
Cancel
Save