ihormelnyk/opentherm_library

Small error in OpenThermMaster_Demo example

colinl opened this issue · 1 comments

In OpenThermMaster_Demo.ino lines 58 onwards read

    else if (responseStatus == OpenThermResponseStatus::INVALID) {
        Serial.println("Error: Invalid response " + String(response, HEX));
    }

I believe this is printing the wrong variable, it should be

    else if (responseStatus == OpenThermResponseStatus::INVALID) {
        Serial.println("Error: Invalid response " + String(responseStatus, HEX));
    }

Perhaps I am wrong. I think I had misinterpreted the code.