File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ jobs:
123
123
run : curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh
124
124
125
125
- name : Update core index
126
- run : arduino-cli core update-index --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/4.4.3 /package_rp2040_index.json
126
+ run : arduino-cli core update-index --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global /package_rp2040_index.json
127
127
128
128
- name : Install core
129
- run : arduino-cli core install --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/4.4.3 /package_rp2040_index.json rp2040:rp2040
129
+ run : arduino-cli core install --additional-urls https://github.com/earlephilhower/arduino-pico/releases/download/global /package_rp2040_index.json rp2040:rp2040
130
130
131
131
- name : Install ArduinoJson
132
132
run : arduino-cli lib install ArduinoJson
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ lib_deps =
138
138
ESP32Async/ESPAsyncTCP @ 2.0.0
139
139
140
140
[env:ci-raspberrypi]
141
- platform = https://github.com/maxgerhardt/platform-raspberrypi.git# 4d1acd7caac8c055c05f5ac6c68fa5f079730947
141
+ platform = https://github.com/maxgerhardt/platform-raspberrypi.git
142
142
board = ${sysenv.PIO_BOARD}
143
143
board_build.core = earlephilhower
144
144
lib_deps =
Original file line number Diff line number Diff line change @@ -60,8 +60,14 @@ class AsyncEventSourceMessage {
60
60
61
61
public:
62
62
AsyncEventSourceMessage (AsyncEvent_SharedData_t data) : _data(data){};
63
- #ifdef ESP32
63
+ #if defined( ESP32)
64
64
AsyncEventSourceMessage (const char *data, size_t len) : _data(std::make_shared<String>(data, len)){};
65
+ #elif defined(TARGET_RP2040) || defined(TARGET_RP2350) || defined(PICO_RP2040) || defined(PICO_RP2350)
66
+ AsyncEventSourceMessage (const char *data, size_t len) : _data(std::make_shared<String>()) {
67
+ if (data && len > 0 ) {
68
+ _data->concat (data, len);
69
+ }
70
+ };
65
71
#else
66
72
// esp8266's String does not have constructor with data/length arguments. Use a concat method here
67
73
AsyncEventSourceMessage (const char *data, size_t len) {
Original file line number Diff line number Diff line change @@ -222,7 +222,11 @@ void AsyncStaticWebHandler::handleRequest(AsyncWebServerRequest *request) {
222
222
etag = lw ^ request->_tempFile .size (); // etag combines file size and lastmod timestamp
223
223
#endif
224
224
} else {
225
+ #if defined(TARGET_RP2040) || defined(TARGET_RP2350) || defined(PICO_RP2040) || defined(PICO_RP2350)
226
+ etag = String (request->_tempFile .size ());
227
+ #else
225
228
etag = request->_tempFile .size ();
229
+ #endif
226
230
}
227
231
228
232
bool not_modified = false ;
You can’t perform that action at this time.
0 commit comments