johove / HAN-powermeter

AMS power meter node for Arduino and mysensors
GNU General Public License v3.0
7 stars 3 forks source link

bufferLength test always evaluates to true, but code works #2

Open johove opened 5 years ago

johove commented 5 years ago

if (c1 ^ 0xF0 == 0xa0) { // BUG, but works: This expresion always evaluates to true, should be ((c1 & 0xF0) == 0xa0). Not tested