File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
#include < WiFi.h>
3
- #include < esp_wifi.h>
4
3
#include < WiFiUdp.h>
5
-
4
+ #if defined(ESP32)
5
+ # include < esp_wifi.h>
6
+ #endif
6
7
#include " AudioTools/CoreAudio/BaseStream.h"
7
8
#include " AudioTools/CoreAudio/Buffers.h"
8
9
@@ -139,12 +140,13 @@ class UDPStream : public BaseStream {
139
140
delay (500 );
140
141
}
141
142
}
142
-
143
+ # if defined(ESP32)
143
144
if (WiFi.status () == WL_CONNECTED) {
144
145
// Performance Hack
145
146
// client.setNoDelay(true);
146
147
esp_wifi_set_ps (WIFI_PS_NONE);
147
148
}
149
+ #endif
148
150
}
149
151
};
150
152
Original file line number Diff line number Diff line change @@ -838,7 +838,8 @@ class NBuffer : public BaseBuffer<T> {
838
838
/* **
839
839
* @brief A File backed buffer which uses the provided files for buffering with
840
840
* the indicated max size. A file is made available for reading as soon as it
841
- * reached the size limit. You must provide the files opened in "Write" mode!
841
+ * reached the size limit. You must provide the files opened in "Write" mode with the
842
+ * addFile() method!
842
843
* @ingroup buffers
843
844
* @tparam File: file class
844
845
* @tparam T: buffered data type
You can’t perform that action at this time.
0 commit comments