mirror of
https://github.com/suchmememanyskill/CYD-Klipper.git
synced 2026-03-20 21:23:25 +00:00
Change some spelling, set timeout on bambu loop
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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%"};
|
||||
|
||||
Reference in New Issue
Block a user