Skip to content

Commit

Permalink
postpone tx in beacon mode
Browse files Browse the repository at this point in the history
  • Loading branch information
norangLemon committed Dec 21, 2017
1 parent 888040d commit 8ec9c83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Middlewares/Third_Party/Lora/Core/lora.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,9 @@ void lora_fsm( void)

TimerSetValue( &SxNextBeaconTimer, LoRaParamInit->RxBeaconCycleTime );
TimerStart( &SxNextBeaconTimer );
// TODO: Reset other timers not to interfere beacon

TimerSetValue( &TxNextPacketTimer, 5000); /* postpone Tx */
TimerStart( &TxNextPacketTimer );

DeviceState = DEVICE_STATE_SLEEP;
break;
Expand Down

0 comments on commit 8ec9c83

Please sign in to comment.