From aea11e0c06ada172d2ceda201671ac94b557a450 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Fri, 29 Aug 2025 17:31:25 +0200 Subject: [PATCH] fix: update vendor check to use shorthand key in payload --- src/api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api.cpp b/src/api.cpp index 624a57d..e025725 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -955,7 +955,7 @@ uint16_t createSpool(uint16_t vendorId, uint16_t filamentId, JsonDocument& paylo } bool createBrandFilament(JsonDocument& payload, String uidString) { - uint16_t vendorId = checkVendor(payload["brand"].as()); + uint16_t vendorId = checkVendor(payload["b"].as()); if (vendorId == 0) { Serial.println("ERROR: Failed to create/find vendor"); return false;