From c8d38eb0998b4a3f1e62c4098af0232eaa190d08 Mon Sep 17 00:00:00 2001 From: fredlcore Date: Sun, 26 Jan 2025 15:29:57 +0800 Subject: [PATCH 1/2] Added note for X86 --- BSB_LAN/bsb-version.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BSB_LAN/bsb-version.h b/BSB_LAN/bsb-version.h index 3e0ca6f1..dda8a0e0 100644 --- a/BSB_LAN/bsb-version.h +++ b/BSB_LAN/bsb-version.h @@ -1,4 +1,4 @@ #define MAJOR "4" #define MINOR "2" -#define PATCH "70" -#define COMPILETIME "20250126141502" +#define PATCH "71" +#define COMPILETIME "20250126152957" From 9f2ba3f0bf05581dd7bd2408510057e1b1210e29 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Sun, 26 Jan 2025 10:08:04 +0100 Subject: [PATCH 2/2] Adapt the size of MQTT tempTopic to the size of config variable (for more safety) --- BSB_LAN/include/mqtt_handler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BSB_LAN/include/mqtt_handler.h b/BSB_LAN/include/mqtt_handler.h index 82be9d91..4404a856 100644 --- a/BSB_LAN/include/mqtt_handler.h +++ b/BSB_LAN/include/mqtt_handler.h @@ -230,7 +230,7 @@ bool mqtt_connect() { } else { printlnToDebug("Connected to MQTT broker, updating will topic"); mqtt_reconnect_timer = 0; - char tempTopic[67]; + char tempTopic[sizeof(MQTTTopicPrefix)+2]; strcpy(tempTopic, MQTTTopicPrefix); strcat(tempTopic, "/#"); MQTTPubSubClient->subscribe(tempTopic, 1); //Luposoft: set the topic listen to