Bugfix in Ikea checksum calculation

This commit is contained in:
Micke Prag 2008-02-16 15:04:50 +00:00
parent e7512dbe2e
commit d2e941ba27

View file

@ -91,9 +91,9 @@ string DeviceIkea::getStringCode(unsigned char level){
if ((intCode>>i) & 1) { if ((intCode>>i) & 1) {
strChannels.append("TT"); strChannels.append("TT");
if (i % 2 == 0) if (i % 2 == 0)
checksum1++;
else
checksum2++; checksum2++;
else
checksum1++;
} else { } else {
strChannels.append("ª"); strChannels.append("ª");
} }