diff --git a/.pio/build/esp12e/firmware.bin b/.pio/build/esp12e/firmware.bin index 46c3972..1e00f3d 100644 Binary files a/.pio/build/esp12e/firmware.bin and b/.pio/build/esp12e/firmware.bin differ diff --git a/include/version.h b/include/version.h index 31ac2fe..daf682f 100644 --- a/include/version.h +++ b/include/version.h @@ -1,9 +1,9 @@ #ifndef BUILD_NUMBER - #define BUILD_NUMBER 4 + #define BUILD_NUMBER 9 #endif #ifndef VERSION - #define VERSION "v0.1.4 - 2023-11-28 11:53:00.628775" + #define VERSION "v0.1.9 - 2023-11-28 12:03:55.553853" #endif #ifndef VERSION_SHORT - #define VERSION_SHORT "v0.1.4" + #define VERSION_SHORT "v0.1.9" #endif diff --git a/src/myOTA.cpp b/src/myOTA.cpp index 5cf74e4..babefdb 100644 --- a/src/myOTA.cpp +++ b/src/myOTA.cpp @@ -52,14 +52,15 @@ void handleOTARemote() { client.setFingerprint(fingerprint); t_httpUpdate_return ret = ESPhttpUpdate.update(client, "https://github.com/bendtherules/Patient-counter-esp8266/raw/main/.pio/build/esp12e/firmware.bin", VERSION_SHORT); switch(ret) { - case HTTP_UPDATE_FAILED: - Serial.println("[update] Update failed."); - break; - case HTTP_UPDATE_NO_UPDATES: - Serial.println("[update] Update no Update."); - break; - case HTTP_UPDATE_OK: - Serial.println("[update] Update ok."); // may not be called since we reboot the ESP - break; + case HTTP_UPDATE_FAILED: + Serial.println("[update] Update failed."); + break; + case HTTP_UPDATE_NO_UPDATES: + Serial.print("[update] Update no Update. Reason -"); + Serial.println(ESPhttpUpdate.getLastErrorString()); + break; + case HTTP_UPDATE_OK: + Serial.println("[update] Update ok."); // may not be called since we reboot the ESP + break; } } diff --git a/versioning b/versioning index bf0d87a..f11c82a 100644 --- a/versioning +++ b/versioning @@ -1 +1 @@ -4 \ No newline at end of file +9 \ No newline at end of file