diff --git a/features/lorawan/LoRaRadio.h b/features/lorawan/LoRaRadio.h index e4ebbc3e38..97983b693a 100644 --- a/features/lorawan/LoRaRadio.h +++ b/features/lorawan/LoRaRadio.h @@ -69,6 +69,7 @@ typedef struct { * Exact operation is implementation specific. */ PinName tcxo; + } rf_ctrls; /** Radio driver internal state. diff --git a/features/lorawan/lorastack/phy/LoRaPHY.cpp b/features/lorawan/lorastack/phy/LoRaPHY.cpp index 20633eeb77..7b42a943fb 100644 --- a/features/lorawan/lorastack/phy/LoRaPHY.cpp +++ b/features/lorawan/lorastack/phy/LoRaPHY.cpp @@ -913,7 +913,9 @@ bool LoRaPHY::compute_rx_win_params(int8_t datarate, uint8_t min_rx_symbols, get_rx_window_params(t_symbol, max_preamble_len, min_rx_symbols, (float) rx_error, MBED_CONF_LORA_WAKEUP_TIME, - &rx_conf_params->window_timeout, &rx_conf_params->window_offset, + &rx_conf_params->window_timeout, + &rx_conf_params->window_timeout_ms, + &rx_conf_params->window_offset, rx_conf_params->datarate); return true; } diff --git a/features/lorawan/lorastack/phy/LoRaPHY.h b/features/lorawan/lorastack/phy/LoRaPHY.h index d42a265c62..5d433c11fa 100644 --- a/features/lorawan/lorastack/phy/LoRaPHY.h +++ b/features/lorawan/lorastack/phy/LoRaPHY.h @@ -749,8 +749,8 @@ protected: */ void get_rx_window_params(float t_symbol, float max_preamble_len, uint8_t min_rx_symbols, float rx_error, float wakeup_time, - uint32_t *window_length, int32_t *window_offset, - uint8_t phy_dr); + uint32_t *window_length, uint32_t *window_length_ms, + int32_t *window_offset, uint8_t phy_dr); /** * Computes the txPower, based on the max EIRP and the antenna gain.