Changed keepalive callback to avoid sending immediate keepalive when the network is congested
This commit is contained in:
parent
fb9e67bcb4
commit
5b0c5b7007
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user