diff --git a/ESP8266/ESP8266.ino b/ESP8266/ESP8266.ino index b774a7e..b6ff4e0 100644 --- a/ESP8266/ESP8266.ino +++ b/ESP8266/ESP8266.ino @@ -71,7 +71,8 @@ static void checkOTA() { http.end(); if (code == HTTP_CODE_OK) { - int remoteVer = body.trim().toInt(); + body.trim(); + int remoteVer = body.toInt(); if (remoteVer > FW_VERSION) { BearSSL::WiFiClientSecure updateClient; updateClient.setInsecure(); diff --git a/Esp32Cam/Esp32Cam.ino b/Esp32Cam/Esp32Cam.ino index 3e51ee4..1f4fb44 100644 --- a/Esp32Cam/Esp32Cam.ino +++ b/Esp32Cam/Esp32Cam.ino @@ -41,7 +41,8 @@ static void checkOTA() { if (code != HTTP_CODE_OK) return; // Gitea no disponible, continúa normal - int remoteVer = body.trim().toInt(); + body.trim(); + int remoteVer = body.toInt(); if (remoteVer <= FW_VERSION) return; // ya tenemos la última versión // Hay versión nueva → descargar y flashear diff --git a/firmware/esp32cam/firmware.bin b/firmware/esp32cam/firmware.bin new file mode 100644 index 0000000..a10c850 Binary files /dev/null and b/firmware/esp32cam/firmware.bin differ