refactor header and RFID display logic, add spool out functionality, and update image assets

This commit is contained in:
2025-02-13 16:13:46 +01:00
parent f01a42d850
commit e5bf05ee43
14 changed files with 57 additions and 20 deletions

View File

@ -192,7 +192,7 @@ bool setBambuSpool(String payload) {
int maxTemp = doc["nozzle_temp_max"];
String type = doc["type"].as<String>();
String brand = doc["brand"].as<String>();
String tray_info_idx = findFilamentIdx(brand, type);
String tray_info_idx = (brand != "" && type != "") ? findFilamentIdx(brand, type) : "";
doc.clear();
@ -330,7 +330,7 @@ void mqtt_callback(char* topic, byte* payload, unsigned int length) {
//Serial.println();
// Sende die aktualisierten AMS-Daten an alle WebSocket-Clients
sendAmsData(nullptr);
//sendAmsData(nullptr);
// Verarbeite erst die normalen AMS-Daten
for (int i = 0; i < amsArray.size() && i < 16; i++) {
@ -366,7 +366,7 @@ void mqtt_callback(char* topic, byte* payload, unsigned int length) {
}
// Sende die aktualisierten AMS-Daten
sendAmsData(nullptr);
//sendAmsData(nullptr);
// Erstelle JSON für WebSocket-Clients
JsonDocument wsDoc;