From 48af769fc2c3fc472862d88b7e0b6ed7b4b9ac6e Mon Sep 17 00:00:00 2001 From: croghostrider Date: Mon, 27 Sep 2021 00:52:50 +0200 Subject: [PATCH] fix sanity checks for new CFG_sx1276_radio boards --- src/lmic/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmic/radio.c b/src/lmic/radio.c index d6cc9088..a32f0d46 100644 --- a/src/lmic/radio.c +++ b/src/lmic/radio.c @@ -1109,7 +1109,7 @@ int radio_init () { // some sanity checks, e.g., read version number u1_t v = readReg(RegVersion); #ifdef CFG_sx1276_radio - if(v != 0x12 ) + if(v != 0x12 & v != 0x13) return 0; #elif CFG_sx1272_radio if(v != 0x22)