diff --git a/CYD-Klipper/src/core/bambu/bambu_printer_integration.cpp b/CYD-Klipper/src/core/bambu/bambu_printer_integration.cpp index a7571f6..ff6968e 100644 --- a/CYD-Klipper/src/core/bambu/bambu_printer_integration.cpp +++ b/CYD-Klipper/src/core/bambu/bambu_printer_integration.cpp @@ -42,7 +42,7 @@ bool BambuPrinter::publish_mqtt_command(const char* command) char auth[48] = {0}; sprintf(auth, "device/%s/request", printer_config->printer_auth); - LOG_F(("Publishing MQTT Command: %s", command)); + LOG_F(("Publishing MQTT Command: %s\n", command)); return client.publish(auth, command); } @@ -117,6 +117,7 @@ bool BambuPrinter::execute_feature(PrinterFeatures feature) bool BambuPrinter::connect() { wifi_client.setInsecure(); + wifi_client.setTimeout(3); client.setBufferSize(4096); client.setServer(printer_config->printer_host, 8883); current_printer = this; diff --git a/CYD-Klipper/src/core/common/constants.cpp b/CYD-Klipper/src/core/common/constants.cpp index 82a9810..b52374a 100644 --- a/CYD-Klipper/src/core/common/constants.cpp +++ b/CYD-Klipper/src/core/common/constants.cpp @@ -1,6 +1,6 @@ #include "constants.h" -const char* fan_speeds_col_1[] = { "100%", "0%" }; +const char* fan_speeds_col_1[] = { "On\n100%", "Off\n0%" }; const int fan_speeds_col_1_values[] = { 100, 0 }; const char* fan_speeds_col_2[] = { "10%", "20%", "30%", "40%", "50%"};