Skip to content

Commit e07c777

Browse files
committed
Use emptyString from LibreTiny v1.9.1
1 parent 899e2a6 commit e07c777

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
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
@@ -112,7 +112,7 @@ build_flags = ${env.build_flags}
112112
-Wno-missing-field-initializers
113113

114114
[env:libretiny]
115-
platform = libretiny
115+
platform = libretiny @ ^1.9.1
116116
board = generic-bk7231n-qfn32-tuya
117117
; board = generic-rtl8710bn-2mb-788k
118118
lib_deps =
@@ -168,7 +168,7 @@ build_flags = ${env.build_flags}
168168
-Wno-missing-field-initializers
169169

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

src/ESPAsyncWebServer.h

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

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

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)