Bugfix in Ikea checksum calculation
This commit is contained in:
parent
e7512dbe2e
commit
d2e941ba27
1 changed files with 2 additions and 2 deletions
|
@ -91,9 +91,9 @@ string DeviceIkea::getStringCode(unsigned char level){
|
|||
if ((intCode>>i) & 1) {
|
||||
strChannels.append("TT");
|
||||
if (i % 2 == 0)
|
||||
checksum1++;
|
||||
else
|
||||
checksum2++;
|
||||
else
|
||||
checksum1++;
|
||||
} else {
|
||||
strChannels.append("ª");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue