fix: update weight field in update payload to only include values greater than 10
This commit is contained in:
		| @@ -147,7 +147,7 @@ bool updateSpoolTagId(String uidString, const char* payload) { | ||||
|     // Update Payload erstellen | ||||
|     JsonDocument updateDoc; | ||||
|     updateDoc["extra"]["nfc_id"] = "\""+uidString+"\""; | ||||
|     updateDoc["weight"] = weight; | ||||
|     if (weight > 10) updateDoc["weight"] = weight; | ||||
|      | ||||
|     String updatePayload; | ||||
|     serializeJson(updateDoc, updatePayload); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user