]> git.basschouten.com Git - openhab-addons.git/commit
[rfxcom] Convert unsigned byte to int properly for message length (#10830)
authorJames Hewitt <james.hewitt@gmail.com>
Thu, 10 Jun 2021 12:30:08 +0000 (13:30 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Jun 2021 12:30:08 +0000 (14:30 +0200)
commitc12e189a133e0aefdc5456a5e807bad39f04e30c
tree33e80493e6e7ce2ad24728f73265d1f270ce37c4
parentc49166a069ddd91de71d5d05f1176c744ad0e00f
[rfxcom] Convert unsigned byte to int properly for message length (#10830)

Without this, any message over 127 bytes reports a negative length and
fails the message start test, which puts the code out of sync with the
rfxcom leading to lots of errors, and eventually, complete loss of
connection.

Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
bundles/org.openhab.binding.rfxcom/src/main/java/org/openhab/binding/rfxcom/internal/connector/RFXComStreamReader.java