mirror of https://github.com/ARMmbed/mbed-os.git
Add back PHY computed ping slot window offset
Removed unintentionally in last commitfeature-lorawan-1-1
parent
0dfd7d54bd
commit
75dcacd33a
|
@ -503,10 +503,7 @@ lorawan_gps_time_t LoRaMacClassB::compute_ping_slot(uint32_t beacon_time, lorawa
|
|||
|
||||
// PHY layer computes window offset adjusting for minimum preamble,
|
||||
// timing errors, receiver wakeup time
|
||||
int32_t window_offset = 0;// rx_config.window_offset;
|
||||
|
||||
// Expand PHY offset by class b window expansion
|
||||
window_offset -= _ping.expansion.movement;
|
||||
int32_t window_offset = rx_config.window_offset - _ping.expansion.movement;
|
||||
|
||||
slot_time += window_offset;
|
||||
next_slot_nb = slot_nb;
|
||||
|
|
Loading…
Reference in New Issue