Skip to content

Commit

Permalink
reduced fast convergence counter to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
SloMusti committed Oct 13, 2018
1 parent f0cf28a commit 4ba5734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comms.ino
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ void comms_transmit(void)
#ifdef debug
serial_debug.println("comms_transmit() scheduling send");
#endif
//if datarate has changed since last check and got more then 50 uplinks, this forces faster convergence towards better datarate
if(((datarate_old!=LoRaWAN.getDataRate())&LoRaWAN.getUpLinkCounter()>50)| LoRaWAN.getUpLinkCounter()==50){
//if datarate has changed since last check and got more then 10 uplinks, this forces faster convergence towards better datarate
if(((datarate_old!=LoRaWAN.getDataRate())&LoRaWAN.getUpLinkCounter()>10)| LoRaWAN.getUpLinkCounter()==10){
#ifdef debug
serial_debug.println("comms_transmit() datarate changed");
#endif
Expand Down

0 comments on commit 4ba5734

Please sign in to comment.