Skip to content

Commit

Permalink
Prepare final release for v2.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rstrouse committed May 12, 2024
1 parent 6077052 commit 4f3a93b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions GitOTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion SomfyController.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down
Binary file modified SomfyController.ino.esp32.bin
Binary file not shown.
Binary file modified SomfyController.ino.esp32s3.bin
Binary file not shown.
1 change: 1 addition & 0 deletions Web.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4f3a93b

Please sign in to comment.