From 75dcacd33a15e009ca62adb15a43f68ad9aa0bd7 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 29 Apr 2019 09:16:52 -0400 Subject: [PATCH] Add back PHY computed ping slot window offset Removed unintentionally in last commit --- features/lorawan/lorastack/mac/LoRaMacClassB.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/features/lorawan/lorastack/mac/LoRaMacClassB.cpp b/features/lorawan/lorastack/mac/LoRaMacClassB.cpp index b5c1b415aa..767295226a 100644 --- a/features/lorawan/lorastack/mac/LoRaMacClassB.cpp +++ b/features/lorawan/lorastack/mac/LoRaMacClassB.cpp @@ -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;