fix: update weight field in update payload to only include values greater than 10

This commit is contained in:
2025-04-23 11:08:32 +02:00
parent 7e330dca1a
commit 537607ed40

View File

@@ -147,7 +147,7 @@ bool updateSpoolTagId(String uidString, const char* payload) {
// Update Payload erstellen // Update Payload erstellen
JsonDocument updateDoc; JsonDocument updateDoc;
updateDoc["extra"]["nfc_id"] = "\""+uidString+"\""; updateDoc["extra"]["nfc_id"] = "\""+uidString+"\"";
updateDoc["weight"] = weight; if (weight > 10) updateDoc["weight"] = weight;
String updatePayload; String updatePayload;
serializeJson(updateDoc, updatePayload); serializeJson(updateDoc, updatePayload);