Skip to content

Commit de5d5eb

Browse files
committed
fix esp32 crash
1 parent 51eeed7 commit de5d5eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/esp-config-page-ota.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ namespace ESP_CONFIG_PAGE
2020

2121
HTTPUpload& upload = server->upload();
2222

23+
#ifdef ESP32
24+
LOGF("Upload info: current size is %d, total sent size is %d, status is %d, name is %s\n", upload.currentSize, upload.totalSize, upload.status, upload.name.c_str());
25+
#elif ESP8266
2326
LOGF("Upload info: current size is %d, total sent size is %d, total file size is %d, status is %d, name is %s\n", upload.currentSize, upload.totalSize, upload.contentLength, upload.status, upload.name.c_str());
27+
#endif
2428

2529
int command = U_FLASH;
2630
if (isFilesystem)

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esp-config-page",
3-
"version": "1.4.1",
3+
"version": "1.4.3",
44
"keywords": "wifi,wi-fi,esp,esp8266,esp32,espressif8266,espressif32,nodemcu,wemos,arduino",
55
"description": "Dynamic and modular configuration webpage for ESP8266 and ESP32 boards using the arduino framework. Features automatic wi-fi setup, OTA updates, web triggered actions, environment variables configuration, logging monitoring and more.",
66
"frameworks": "arduino",

0 commit comments

Comments
 (0)