Skip to content

Commit

Permalink
Indentation / bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed Jul 23, 2016
1 parent fbdb97a commit 5fa70fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Local/SendAndReceive/Device1/Device1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void setup() {
};

void receiver_function(uint8_t *payload, uint8_t length, const PacketInfo &packet_info) {
if((char)payload[0] == 'B') {
if((char)payload[0] == 'B') {
if(!bus.packets[packet].state)
packet = bus.reply("B", 1); // Avoid duplicate sending checking old packet state
digitalWrite(13, HIGH);
Expand Down
3 changes: 2 additions & 1 deletion examples/Local/SendAndReceive/Device2/Device2.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// <Strategy name> bus(selected device id)
PJON<SoftwareBitBang> bus(45);
int packet;

void setup() {
pinModeFast(13, OUTPUT);
Expand All @@ -18,7 +19,7 @@ void setup() {
};

void receiver_function(uint8_t *payload, uint8_t length, const PacketInfo &packet_info) {
if((char)payload[0] == 'B') {
if((char)payload[0] == 'B') {
if(!bus.packets[packet].state)
packet = bus.reply("B", 1); // Avoid duplicate sending checking old packet state
digitalWrite(13, HIGH);
Expand Down

0 comments on commit 5fa70fc

Please sign in to comment.