From b6bd4cb9ad180948d674725bc6dcefebbbf699c4 Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Tue, 25 Mar 2025 12:05:34 +0100 Subject: [PATCH] refactor: remove unused request_topic subscription and reduce MQTT task stack size --- src/bambu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bambu.cpp b/src/bambu.cpp index 4efdac9..f5f3752 100644 --- a/src/bambu.cpp +++ b/src/bambu.cpp @@ -626,7 +626,6 @@ bool setupMqtt() { client.setCallback(mqtt_callback); client.setBufferSize(15488); client.subscribe((String(topic) + "/report").c_str()); - //client.subscribe(request_topic.c_str()); Serial.println("MQTT-Client initialisiert"); oledShowMessage("Bambu Connected"); @@ -636,7 +635,7 @@ bool setupMqtt() { xTaskCreatePinnedToCore( mqtt_loop, /* Function to implement the task */ "BambuMqtt", /* Name of the task */ - 10240, /* Stack size in words */ + 8192, /* Stack size in words */ NULL, /* Task input parameter */ mqttTaskPrio, /* Priority of the task */ &BambuMqttTask, /* Task handle. */