diff --git a/Demos/Arduino/display_rx.ino b/Demos/Arduino/display_rx.ino index 95fb496..e430f0e 100644 --- a/Demos/Arduino/display_rx.ino +++ b/Demos/Arduino/display_rx.ino @@ -54,8 +54,8 @@ void loop() { } myTransfer.sendData(myTransfer.bytesRead); - int x = int(myTransfer.packet.rxBuff); - if((x % 2) > 0) { digitalWrite(pin1, HIGH); } else { digitalWrite(pin1, LOW); } + int x = int(myTransfer.packet.rxBuff); + if((x % 2) > 0) { digitalWrite(pin1, HIGH); } else { digitalWrite(pin1, LOW); } if((x % 4) > 1) { digitalWrite(pin2, HIGH); } else { digitalWrite(pin2, LOW); } if((x % 8) > 3) { digitalWrite(pin3, HIGH); } else { digitalWrite(pin3, LOW); } if((x % 16) > 7) { digitalWrite(pin4, HIGH); } else { digitalWrite(pin4, LOW); }