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);