fix: update vendor check to use shorthand key in payload
This commit is contained in:
1 parent
bd8f4606c6
commit
aea11e0c06
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user