Merge pull request #362 from Tim024/infinite-ka-fix

TSCH Keepalive loop fix
This commit is contained in:
Simon Duquennoy 2018-03-23 19:23:35 +01:00 committed by GitHub
commit 38b18058f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ keepalive_packet_sent(void *ptr, int status, int transmissions)
LOG_INFO_(", st %d-%d\n", status, transmissions);
/* We got no ack, try to recover by switching to the last neighbor we received an EB from */
if(status != MAC_TX_OK) {
if(status == MAC_TX_NOACK) {
if(linkaddr_cmp(&last_eb_nbr_addr, &linkaddr_null)) {
LOG_WARN("not able to re-synchronize, received no EB from other neighbors\n");
if(sync_count == 0) {