Skip to content

Commit 0b83e8b

Browse files
committed
0.8.147
fix compilation
1 parent 27c77f4 commit 0b83e8b

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/hm/CommQueue.h

+12
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
#include "hmInverter.h"
1212
#include "../utils/dbg.h"
1313

14+
#if !defined(ESP32)
15+
#define vSemaphoreDelete(a)
16+
#define xSemaphoreTake(a, b)
17+
#define xSemaphoreGive(a)
18+
#endif
19+
1420
template <uint8_t N=100>
1521
class CommQueue {
1622
protected: /* types */
@@ -80,8 +86,10 @@ class CommQueue {
8086
: wrPtr {0}
8187
, rdPtr {0}
8288
{
89+
#if defined(ESP32)
8390
this->mutex = xSemaphoreCreateBinaryStatic(&this->mutex_buffer);
8491
xSemaphoreGive(this->mutex);
92+
#endif
8593
}
8694

8795
~CommQueue() {
@@ -186,8 +194,12 @@ class CommQueue {
186194
private:
187195
uint8_t wrPtr;
188196
uint8_t rdPtr;
197+
#if defined(ESP32)
189198
SemaphoreHandle_t mutex;
190199
StaticSemaphore_t mutex_buffer;
200+
#else
201+
bool mutex;
202+
#endif
191203
};
192204

193205

src/platformio.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ platform = [email protected]
154154
board = lolin_d32
155155
lib_deps =
156156
${env.lib_deps}
157-
https://github.com/mathieucarbou/ESPAsyncWebServer @ ^3.3.1
157+
https://github.com/mathieucarbou/ESPAsyncWebServer#v3.3.1
158158
build_flags = ${env.build_flags}
159159
-DSPI_HAL
160160
monitor_filters =

0 commit comments

Comments
 (0)