Change some spelling, set timeout on bambu loop

This commit is contained in:
suchmememanyskill
2024-12-22 23:20:36 +01:00
parent 4fc16ecc92
commit 5ec2ba66e4
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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%"};