Prepare final release for v2.4.3

This commit is contained in:
Robert Strouse 2024-05-12 11:23:23 -07:00
parent 6077052e9b
commit 4f3a93b336
5 changed files with 5 additions and 3 deletions

View file

@ -355,7 +355,7 @@ int GitUpdater::checkInternet() {
https.setReuse(false);
if(https.begin(sclient, "https://github.com/rstrouse/ESPSomfy-RTS")) {
https.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
https.setTimeout(5000);
https.setTimeout(3000);
int httpCode = https.sendRequest("HEAD");
if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY || httpCode == HTTP_CODE_FOUND) {
err = 0;
@ -496,8 +496,9 @@ int8_t GitUpdater::downloadFile() {
int timeouts = 0;
while(https.connected() && (len > 0 || len == -1) && total < len) {
size_t size = stream->available();
esp_task_wdt_reset();
if(size) {
esp_task_wdt_reset();
timeouts = 0;
if(this->cancelled && !this->lockFS) {
Update.abort();
free(buff);

View file

@ -37,7 +37,7 @@ void setup() {
net.setup();
somfy.begin();
//git.checkForUpdate();
esp_task_wdt_init(5, true); //enable panic so ESP32 restarts
esp_task_wdt_init(7, true); //enable panic so ESP32 restarts
esp_task_wdt_add(NULL); //add current thread to WDT watch
}

Binary file not shown.

Binary file not shown.

View file

@ -225,6 +225,7 @@ void Web::handleStreamFile(WebServer &server, const char *filename, const char *
Serial.println(filename);
server.send(500, _encoding_text, "Error opening file");
}
esp_task_wdt_reset();
server.streamFile(file, encoding);
file.close();
}