Skip to content

Commit

Permalink
replace resume() by enableIRIn()
Browse files Browse the repository at this point in the history
After receiving controller message: enableIRIn() is used instead of resume() to reset the IR receiver
(Unfortunately, this doesn't solve Issue #2)
  • Loading branch information
rejoe2 authored Oct 16, 2017
1 parent bef2fa4 commit 6ac4c87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IrSensor/IrSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ void receive(const MyMessage &message) {
bits = atoi(arg[2]);
irsend.send(protocol, code, bits);
free(irString);
// Start receiving ir again...
My_Receiver.enableIRIn()();
}

// Start receiving ir again...
My_Receiver.resume();

}

0 comments on commit 6ac4c87

Please sign in to comment.