From b06b2f9bcbc7bbce0fa359f635c8740590961e32 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Mon, 28 Jun 2021 14:07:28 +0200 Subject: [PATCH] examples/lorawan: add missing sx126x descriptor --- examples/lorawan/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/lorawan/main.c b/examples/lorawan/main.c index a8078fcd38..9b6de7595e 100644 --- a/examples/lorawan/main.c +++ b/examples/lorawan/main.c @@ -52,7 +52,12 @@ static kernel_pid_t sender_pid; static char sender_stack[THREAD_STACKSIZE_MAIN / 2]; static semtech_loramac_t loramac; +#if IS_USED(MODULE_SX127X) static sx127x_t sx127x; +#endif +#if IS_USED(MODULE_SX126X) +static sx126x_t sx126x; +#endif static const char *message = "This is RIOT!";