From 5fa70fcf4a2ba5e330d0ca5cd5b2631cf653042f Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 23 Jul 2016 18:14:43 +0200 Subject: [PATCH] Indentation / bugfix --- examples/Local/SendAndReceive/Device1/Device1.ino | 2 +- examples/Local/SendAndReceive/Device2/Device2.ino | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Local/SendAndReceive/Device1/Device1.ino b/examples/Local/SendAndReceive/Device1/Device1.ino index 74b4db8956..9b8a077d74 100644 --- a/examples/Local/SendAndReceive/Device1/Device1.ino +++ b/examples/Local/SendAndReceive/Device1/Device1.ino @@ -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); diff --git a/examples/Local/SendAndReceive/Device2/Device2.ino b/examples/Local/SendAndReceive/Device2/Device2.ino index 53f15061c6..7834e96229 100644 --- a/examples/Local/SendAndReceive/Device2/Device2.ino +++ b/examples/Local/SendAndReceive/Device2/Device2.ino @@ -2,6 +2,7 @@ // bus(selected device id) PJON bus(45); +int packet; void setup() { pinModeFast(13, OUTPUT); @@ -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);