Add back PHY computed ping slot window offset

Removed unintentionally in last commit
feature-lorawan-1-1
Unknown 2019-04-29 09:16:52 -04:00 committed by Antti Kauppila
parent 0dfd7d54bd
commit 75dcacd33a
1 changed files with 1 additions and 4 deletions

View File

@ -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;