From dd23a0fa60174f04383e221fa55e393906a7d3f0 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Wed, 18 Jan 2023 20:48:27 +0100 Subject: [PATCH] Fixed reboot look --- src/AmsToMqttBridge.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AmsToMqttBridge.ino b/src/AmsToMqttBridge.ino index 12415b10..09c13f28 100644 --- a/src/AmsToMqttBridge.ino +++ b/src/AmsToMqttBridge.ino @@ -121,6 +121,10 @@ DSMRParser *dsmrParser = NULL; void setup() { Serial.begin(115200); + if(!config.hasConfig()) { + config.clearGpio(gpioConfig); + } + delay(1); config.loadTempSensors(); hw.setup(&gpioConfig, &config);