mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-04 20:55:55 +02:00
fix compile for ESP8266
This commit is contained in:
parent
468d7a6db7
commit
bf5fe900da
5 changed files with 9 additions and 3 deletions
|
@ -18,7 +18,6 @@ void app::setup() {
|
|||
while (!Serial)
|
||||
yield();
|
||||
|
||||
|
||||
resetSystem();
|
||||
|
||||
mSettings.setup();
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue