Bit 0 en ad bit 1 in the unit-code was switched
This commit is contained in:
parent
1f0bc17620
commit
7cc05630e4
1 changed files with 2 additions and 2 deletions
|
@ -155,7 +155,7 @@ std::string DeviceX10::getStringCode(bool on){
|
|||
strComplement.append(B0);
|
||||
}
|
||||
|
||||
if (intCode >> 1 & 1) { //Bit 1 of intCode
|
||||
if (intCode & 1) { //Bit 0 of intCode
|
||||
strReturn.append(B1);
|
||||
strComplement.append(B0);
|
||||
} else {
|
||||
|
@ -163,7 +163,7 @@ std::string DeviceX10::getStringCode(bool on){
|
|||
strComplement.append(B1);
|
||||
}
|
||||
|
||||
if (intCode & 1) { //Bit 0 of intCode
|
||||
if (intCode >> 1 & 1) { //Bit 1 of intCode
|
||||
strReturn.append(B1);
|
||||
strComplement.append(B0);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue