From 8f91394c75ae145d61814a0be114d5ced5d50114 Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 2 Aug 2024 14:28:39 +0200 Subject: [PATCH] add Michaels fix for circuits --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index f0642d3de..5f5d3a064 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -98,7 +98,7 @@ uint8_t Command::process(const char * path, const bool is_admin, const JsonObjec // some commands may be prefixed with hc. dhw. or hc/ or dhw/ so extract these if they exist // parse_command_string returns the extracted command - if (device_type > EMSdevice::DeviceType::BOILER) { + if (device_type >= EMSdevice::DeviceType::BOILER) { command_p = parse_command_string(command_p, id_n); } if (command_p == nullptr) { @@ -151,7 +151,7 @@ uint8_t Command::process(const char * path, const bool is_admin, const JsonObjec data_p = device_end + 1; int8_t id_d = -1; uint8_t device_type = EMSdevice::device_name_2_device_type(device_p); - if (device_type > EMSdevice::DeviceType::BOILER) { + if (device_type >= EMSdevice::DeviceType::BOILER) { data_p = parse_command_string(data_p, id_d); } if (data_p == nullptr) {