Permalink
Browse files

send_repeatedly async_ack no error bugfix (#109)

  • Loading branch information...
gioblu committed Jan 30, 2017
1 parent 053a425 commit f573f996d5a158fbdee241d3f0d9de6a4f3c5090
Showing with 6 additions and 4 deletions.
  1. +6 −4 PJON.h
10 PJON.h
@@ -494,7 +494,7 @@ limitations under the License. */
uint16_t send(uint8_t id, const char *string, uint16_t length, uint16_t header = NOT_ASSIGNED) {
return dispatch(id, bus_id, string, length, 0, header);
};
uint16_t send(
uint8_t id,
@@ -803,9 +803,11 @@ limitations under the License. */
packets_count--;
}
} else {
packets[i].attempts = 0;
packets[i].registration = micros();
packets[i].state = TO_BE_SENT;
if(!async_ack) {
packets[i].attempts = 0;
packets[i].registration = micros();
packets[i].state = TO_BE_SENT;
}
} if(!async_ack) continue;
}

0 comments on commit f573f99

Please sign in to comment.