From 3f99806ddd446626fbefcc70fdfc67645184f4c8 Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 1 Oct 2023 17:31:11 +0200 Subject: [PATCH] sending dash/- to reset command doesn't error --- src/devices/boiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/devices/boiler.cpp b/src/devices/boiler.cpp index 6454c919f..e601d3d96 100644 --- a/src/devices/boiler.cpp +++ b/src/devices/boiler.cpp @@ -2341,7 +2341,9 @@ bool Boiler::set_reset(const char * value, const int8_t id) { return false; } - if (num == 1) { + if (num == 0) { + return true; // dash + } else if (num == 1) { // LOG_INFO("Reset boiler maintenance message"); write_command(0x05, 0x08, 0xFF, 0x1C); has_update(&reset_);