Skip to content

Commit ecc4a22

Browse files
committed
fix: set context when using usp lbm
This commits needs the patch of Lora-net/usp#2 as otherwise, the `modem_radio` is not initialized
1 parent 5da1e64 commit ecc4a22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/smtc_modem_hal/smtc_modem_hal.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
#include <zephyr/usp/lora_lbm_transceiver.h>
4949

5050
#include <smtc_modem_hal.h>
51+
#include <smtc_modem_utilities.h>
5152
#include <zephyr/lorawan_lbm/lorawan_hal_init.h>
5253

5354
#if defined(CONFIG_USP)
@@ -111,7 +112,7 @@ void lorawan_smtc_modem_hal_init(const struct device *transceiver)
111112
#if defined(CONFIG_USP)
112113
smtc_rac_set_radio_context(prv_transceiver_dev); // Driver HAL implementation
113114
#endif
114-
#if defined( CONFIG_LORA_BASICS_MODEM )
115+
#if defined( CONFIG_LORA_BASICS_MODEM ) || defined( CONFIG_USP_LORA_BASICS_MODEM )
115116
smtc_modem_set_radio_context(prv_transceiver_dev);
116117
#endif
117118
}

0 commit comments

Comments
 (0)