Compare commits
	
		
			5 Commits
		
	
	
		
			v1.2.63
			...
			7e776d4816
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7e776d4816 | |||
| e84b2973c5 | |||
| 5793dc1a1f | |||
| 1732491c48 | |||
| 0500bb6951 | 
							
								
								
									
										13
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,5 +1,18 @@ | ||||
| # Changelog | ||||
|  | ||||
| ## [1.2.65] - 2025-02-20 | ||||
| ### Changed | ||||
| - update webpages for version v1.2.65 | ||||
|  | ||||
|  | ||||
| ## [1.2.64] - 2025-02-20 | ||||
| ### Changed | ||||
| - update webpages for version v1.2.64 | ||||
|  | ||||
| ### Fixed | ||||
| - improve error handling in OTA upload process | ||||
|  | ||||
|  | ||||
| ## [1.2.63] - 2025-02-20 | ||||
| ### Added | ||||
| - update version to 1.2.63 | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|         <div style="display: flex; align-items: center; gap: 2rem;"> | ||||
|             <img src="/logo.png" alt="FilaMan Logo" class="logo"> | ||||
|             <div class="logo-text"> | ||||
|                 <h1>FilaMan<span class="version">v1.2.63</span></h1> | ||||
|                 <h1>FilaMan<span class="version">v1.2.65</span></h1> | ||||
|                 <h4>Filament Management Tool</h4> | ||||
|             </div> | ||||
|         </div> | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| ; https://docs.platformio.org/page/projectconf.html | ||||
|  | ||||
| [common] | ||||
| version = "1.2.63" | ||||
| version = "1.2.65" | ||||
|  | ||||
| [env:esp32dev] | ||||
| platform = espressif32 | ||||
|   | ||||
							
								
								
									
										18
									
								
								src/ota.cpp
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								src/ota.cpp
									
									
									
									
									
								
							| @@ -43,10 +43,12 @@ void handleOTAUpload(AsyncWebServerRequest *request, String filename, size_t ind | ||||
|      | ||||
|     // Schreibe Daten | ||||
|     if (Update.write(data, len) != len) { | ||||
|         Update.printError(Serial); | ||||
|         String errorMsg = Update.errorString(); | ||||
|         request->send(400, "application/json", "{\"status\":\"error\",\"message\":\"Error writing update: " + errorMsg + "\"}"); | ||||
|         return; | ||||
|         if (errorMsg != "No Error") { | ||||
|             Update.printError(Serial); | ||||
|             request->send(400, "application/json", "{\"status\":\"error\",\"message\":\"Error writing update: " + errorMsg + "\"}"); | ||||
|             return; | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     currentOffset += len; | ||||
| @@ -59,8 +61,14 @@ void handleOTAUpload(AsyncWebServerRequest *request, String filename, size_t ind | ||||
|             ESP.restart(); | ||||
|         } else { | ||||
|             String errorMsg = Update.errorString(); | ||||
|             Update.printError(Serial); | ||||
|             request->send(400, "application/json", "{\"status\":\"error\",\"message\":\"Update failed: " + errorMsg + "\"}"); | ||||
|             if (errorMsg != "No Error") { | ||||
|                 Update.printError(Serial); | ||||
|                 request->send(400, "application/json", "{\"status\":\"error\",\"message\":\"Update failed: " + errorMsg + "\"}"); | ||||
|             } else { | ||||
|                 request->send(200, "application/json", "{\"status\":\"success\",\"message\":\"Update successful! Device will restart...\",\"restart\":true}"); | ||||
|                 delay(1000); | ||||
|                 ESP.restart(); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user