Skip to content

Commit 817efb2

Browse files
committed
Use emptyString from LibreTiny v1.9.1
1 parent 14a9772 commit 817efb2

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,11 @@ lib_deps =
7474

7575
### LibreTiny (BK7231N/T, RTL8710B, etc.)
7676

77+
Version 1.9.1 or newer is required.
78+
7779
```ini
7880
[env:stable]
79-
platform = libretiny
81+
platform = libretiny @ ^1.9.1
8082
lib_ldf_mode = chain
8183
lib_deps =
8284
ESP32Async/AsyncTCP

platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ build_flags = ${env.build_flags}
110110
-Wno-missing-field-initializers
111111

112112
[env:libretiny]
113-
platform = libretiny
113+
platform = libretiny @ ^1.9.1
114114
board = generic-bk7231n-qfn32-tuya
115115
; board = generic-rtl8710bn-2mb-788k
116116
lib_deps =
@@ -166,7 +166,7 @@ build_flags = ${env.build_flags}
166166
-Wno-missing-field-initializers
167167

168168
[env:ci-libretiny]
169-
platform = libretiny
169+
platform = libretiny @ ^1.9.1
170170
board = ${sysenv.PIO_BOARD}
171171
lib_deps =
172172
ESP32Async/AsyncTCP @ 3.4.3

src/ESPAsyncWebServer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ class AsyncWebServer : public AsyncMiddlewareChain {
11001100
void end();
11011101

11021102
tcp_state state() const {
1103-
#if defined(ESP8266) || defined(LIBRETINY)
1103+
#ifdef ESP8266
11041104
// ESPAsyncTCP and RPAsyncTCP methods are not corrected declared with const for immutable ones.
11051105
return static_cast<tcp_state>(const_cast<AsyncWebServer *>(this)->_server.status());
11061106
#else

src/WebServer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
#include "ESPAsyncWebServer.h"
55
#include "WebHandlerImpl.h"
66

7-
#ifdef LIBRETINY
8-
const String emptyStringForEspAsync;
9-
#endif
10-
117
using namespace asyncsrv;
128

139
bool ON_STA_FILTER(AsyncWebServerRequest *request) {

src/literals.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33

44
#pragma once
55

6-
#ifdef LIBRETINY
7-
extern const String emptyStringForEspAsync;
8-
#define emptyString emptyStringForEspAsync
9-
#endif
10-
116
namespace asyncsrv {
127

138
static constexpr const char *empty = "";

0 commit comments

Comments
 (0)