fix: update vendor check to use shorthand key in payload

This commit is contained in:
2025-08-29 17:31:25 +02:00
parent bd8f4606c6
commit aea11e0c06

View File

@@ -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<String>());
uint16_t vendorId = checkVendor(payload["b"].as<String>());
if (vendorId == 0) {
Serial.println("ERROR: Failed to create/find vendor");
return false;