From 5ec2ba66e46c7297a2e8d485e530546e716f0829 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 22 Dec 2024 23:20:36 +0100 Subject: [PATCH] Change some spelling, set timeout on bambu loop --- CYD-Klipper/src/core/bambu/bambu_printer_integration.cpp | 3 ++- CYD-Klipper/src/core/common/constants.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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%"};