Skip to content

Commit

Permalink
InteractiveRouter sync ack transmission added (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
gioblu committed May 2, 2019
1 parent 35137ab commit 9fc81b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PJONInteractiveRouter.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ class PJONInteractiveRouter : public RouterClass {
// Take care of other's packets
if(!packet_is_for_me)
RouterClass::dynamic_receiver_function(payload, length, packet_info);

else if(packet_info.header & PJON_ACK_REQ_BIT)
RouterClass::buses[RouterClass::current_bus]->send_synchronous_acknowledge();
// Call the receive callback _after_ the packet has been delivered
if(router || packet_is_for_me) {
// The packet is for ME :-)
Expand Down

0 comments on commit 9fc81b3

Please sign in to comment.