fix minor bug in sketch.ino

This commit is contained in:
Shannon Sterz 2016-01-13 09:55:37 +01:00
parent cce0df036f
commit 588948161a
2 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*/node_modules/*
arduino/.build/*
npm-debug.log

View file

@ -3,7 +3,6 @@
RCSwitch mySwitch = RCSwitch();
int mode = 0;
int incomingByte = 0;
boolean on = false;
void setup()
@ -15,7 +14,7 @@ void setup()
void loop()
{
if(Serial.available()) {
incomingByte = Serial.read();
mode = Serial.read();
switch (mode) {