From 4d422c5dd4fbe62a77258da86902b2c384becd36 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 7 Oct 2019 09:52:33 +0200 Subject: [PATCH] tidy up comments --- src/ems-esp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index 5fcb0d989..9977f2643 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -1616,9 +1616,10 @@ void OTACallback_post() { } -// see's if a topic is appended with an interger value +// see's if a topic string is appended with an interger value // used to identify a heating circuit -// returns HC number +// returns HC number 1 - 4 +// or the default (1) is no suffix can be found uint8_t _hasHCspecified(const char * topic, const char * input) { int orig_len = strlen(topic); // original length of the topic we're comparing too @@ -1631,7 +1632,7 @@ uint8_t _hasHCspecified(const char * topic, const char * input) { } if (diff == 0) { - return EMS_THERMOSTAT_DEFAULTHC; // identical, use default + return EMS_THERMOSTAT_DEFAULTHC; // identical, use default which is 1 } // return the value of the last char, 0-9