diff --git a/src/X10ex.cpp b/src/X10ex.cpp index c346acc..b6bffdf 100644 --- a/src/X10ex.cpp +++ b/src/X10ex.cpp @@ -805,7 +805,7 @@ void X10ex::clearReceiveBuffer() uint8_t X10ex::parseHouseCode(uint8_t house) { - return house - (house < 0xF ? 0 : house >= 0x61 ? 0x61 : 0x41); + return house - (house <= 0xF ? 0 : house >= 0x61 ? 0x61 : 0x41); } int8_t X10ex::findCodeIndex(const uint8_t codeList[16], uint8_t code) @@ -832,4 +832,4 @@ void X10ex::fastDigitalWrite(uint8_t port, uint8_t bitMask, uint8_t value) *out |= bitMask; } SREG = sreg; -} \ No newline at end of file +}