From 986129b7a7d3a6b983321caba34aa7cf66351407 Mon Sep 17 00:00:00 2001 From: Sassa NF Date: Mon, 23 Dec 2024 12:57:12 +0000 Subject: [PATCH] Fixup LR1121 - compile warning --- lib/comms/radio_comms.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/comms/radio_comms.cpp b/lib/comms/radio_comms.cpp index c686c10..fa269b6 100644 --- a/lib/comms/radio_comms.cpp +++ b/lib/comms/radio_comms.cpp @@ -125,6 +125,10 @@ Message *RadioComms::receive(uint16_t timeout_ms) { uint8_t msg[MAX_MSG]; +#ifdef USING_LR1121 + Message *message = NULL; +#warning Radio Comms not fully supported for LR1121 +#else // because of this, receive is single-threaded, single-device _received = false; radio.setDio1Action(_rcv); @@ -229,6 +233,6 @@ Message *RadioComms::receive(uint16_t timeout_ms) { delete[] packet; } - +#endif return message; }