Fix ADR channel mask handling
Fork of lmic_MOTE_L152RC by
Diff: radio.cpp
- Revision:
- 4:1a9a62cf220f
- Parent:
- 3:d87012f45bf6
- Child:
- 8:0faa1bb768b5
--- a/radio.cpp Thu Jun 18 23:22:43 2015 +0000 +++ b/radio.cpp Tue Jul 07 18:25:05 2015 +0000 @@ -228,7 +228,7 @@ #define MAP_DIO0_LORA_TXDONE 0x40 // 01------ #define MAP_DIO1_LORA_RXTOUT 0x00 // --00---- #define MAP_DIO1_LORA_NOP 0x30 // --11---- -#define MAP_DIO2_LORA_NOP 0xC0 // ----11-- +#define MAP_DIO2_LORA_NOP 0x0c // ----11-- #define MAP_DIO0_FSK_READY 0x00 // 00------ (packet sent / payload ready) #define MAP_DIO1_FSK_NOP 0x30 // --11---- @@ -295,7 +295,7 @@ hal_pin_nss(1); } -static void opmode (u1_t mode) { +static void opmode (u1_t mode) { hal_opmode(mode, PaSelect); writeReg(RegOpMode, (readReg(RegOpMode) & ~OPMODE_MASK) | mode); }