From 4ead755fe9354073801a9e21fa293b7216ad6ed5 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 3 Feb 2018 18:30:12 +0100 Subject: [PATCH] Bug fix in radio.c RegPaDac register address Register RegPaDac has different address, depending if chip SX1272/73 or chip 1276/77/78/9 --- lmic/radio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lmic/radio.c b/lmic/radio.c index 90db4f4..10ca0de 100644 --- a/lmic/radio.c +++ b/lmic/radio.c @@ -133,7 +133,11 @@ // #define RegAgcThresh3 0x46 // common // #define RegPllHop 0x4B // common // #define RegTcxo 0x58 // common -#define RegPaDac 0x5A // common +#ifdef CFG_sx1276_radio + #define RegPaDac 0x4D // common +#else + #define RegPaDac 0x5A // common +#endif // #define RegPll 0x5C // common // #define RegPllLowPn 0x5E // common // #define RegFormerTemp 0x6C // common