File tree Expand file tree Collapse file tree 9 files changed +42
-1
lines changed Expand file tree Collapse file tree 9 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -1247,6 +1247,7 @@ function uflt12f(rawUflt12)
1247
1247
- HEAD has the following changes.
1248
1248
1249
1249
- Enable device time request by default in config file ([ #840 ] ( https://github.com/mcci-catena/arduino-lmic/issues/840 ) ).
1250
+ - Correct bug in MAC Rx1DrOffset error checking for regions other than US ([ #841 ] ( https://github.com/mcci-catena/arduino-lmic/issues/840 ) ). Thanks to @GitTibbe for finding this.
1250
1251
- Refactor the LMIC to enable secure element support ([ #578 ] ( https://github.com/mcci-catena/arduino-lmic/issues/840 ) ).
1251
1252
- Start resurrecting Doxygen support.
1252
1253
Original file line number Diff line number Diff line change @@ -886,7 +886,7 @@ scan_mac_cmds(
886
886
LMIC .dn2Ans |= MCMD_RXParamSetupAns_RX2DataRateACK ;
887
887
if ( freq != 0 )
888
888
LMIC .dn2Ans |= MCMD_RXParamSetupAns_ChannelACK ;
889
- if (rx1DrOffset <= 3 )
889
+ if ( rx1DrOffset <= LMICbandplan_queryMaxRx1DrOffset () )
890
890
LMIC .dn2Ans |= MCMD_RXParamSetupAns_RX1DrOffsetAck ;
891
891
892
892
if ( LMIC .dn2Ans == (0xC0 |MCMD_RXParamSetupAns_RX2DataRateACK |MCMD_RXParamSetupAns_ChannelACK | MCMD_RXParamSetupAns_RX1DrOffsetAck ) ) {
Original file line number Diff line number Diff line change 118
118
# error "LMICbandplan_convFreq() not defined by bandplan"
119
119
#endif
120
120
121
+ #if !defined(LMICbandplan_queryMaxRx1DrOffset )
122
+ # error "LMICbandplan_queryMaxRx1DrOffset() not defined by bandplan"
123
+ #endif
124
+
121
125
#if !defined(LMICbandplan_setRx1Params )
122
126
# error "LMICbandplan_setRx1Params() not defined by bandplan"
123
127
#endif
Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ void LMICas923_setBcnRxParams(void);
82
82
u4_t LMICas923_convFreq (xref2cu1_t ptr );
83
83
#define LMICbandplan_convFreq (ptr ) LMICas923_convFreq(ptr)
84
84
85
+ static inline u1_t
86
+ LMICas923_queryMaxRx1DrOffset (void ) {
87
+ return 7 ;
88
+ }
89
+ #define LMICbandplan_queryMaxRx1DrOffset () LMICas923_queryMaxRx1DrOffset()
90
+
85
91
void LMICas923_initJoinLoop (void );
86
92
#define LMICbandplan_initJoinLoop () LMICas923_initJoinLoop()
87
93
Original file line number Diff line number Diff line change @@ -60,6 +60,12 @@ void LMICau915_setBcnRxParams(void);
60
60
u4_t LMICau915_convFreq (xref2cu1_t ptr );
61
61
#define LMICbandplan_convFreq (ptr ) LMICau915_convFreq(ptr)
62
62
63
+ static inline u1_t
64
+ LMICau915_queryMaxRx1DrOffset (void ) {
65
+ return 5 ;
66
+ }
67
+ #define LMICbandplan_queryMaxRx1DrOffset () LMICau915_queryMaxRx1DrOffset()
68
+
63
69
void LMICau915_setRx1Params (void );
64
70
#define LMICbandplan_setRx1Params () LMICau915_setRx1Params()
65
71
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ void LMICeu868_setBcnRxParams(void);
69
69
u4_t LMICeu868_convFreq (xref2cu1_t ptr );
70
70
#define LMICbandplan_convFreq (ptr ) LMICeu868_convFreq(ptr)
71
71
72
+ static inline u1_t
73
+ LMICeu868_queryMaxRx1DrOffset (void ) {
74
+ return 5 ;
75
+ }
76
+ #define LMICbandplan_queryMaxRx1DrOffset () LMICeu868_queryMaxRx1DrOffset()
77
+
72
78
void LMICeu868_initJoinLoop (void );
73
79
#define LMICbandplan_initJoinLoop () LMICeu868_initJoinLoop()
74
80
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ void LMICin866_setBcnRxParams(void);
66
66
u4_t LMICin866_convFreq (xref2cu1_t ptr );
67
67
#define LMICbandplan_convFreq (ptr ) LMICin866_convFreq(ptr)
68
68
69
+ static inline u1_t
70
+ LMICin866_queryMaxRx1DrOffset (void ) {
71
+ return 7 ;
72
+ }
73
+ #define LMICbandplan_queryMaxRx1DrOffset () LMICin866_queryMaxRx1DrOffset()
74
+
69
75
void LMICin866_initJoinLoop (void );
70
76
#define LMICbandplan_initJoinLoop () LMICin866_initJoinLoop()
71
77
Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ void LMICkr920_setBcnRxParams(void);
69
69
u4_t LMICkr920_convFreq (xref2cu1_t ptr );
70
70
#define LMICbandplan_convFreq (ptr ) LMICkr920_convFreq(ptr)
71
71
72
+ static inline u1_t
73
+ LMICkr920_queryMaxRx1DrOffset (void ) {
74
+ return 5 ;
75
+ }
76
+ #define LMICbandplan_queryMaxRx1DrOffset () LMICkr920_queryMaxRx1DrOffset()
77
+
72
78
void LMICkr920_initJoinLoop (void );
73
79
#define LMICbandplan_initJoinLoop () LMICkr920_initJoinLoop()
74
80
Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ void LMICus915_setBcnRxParams(void);
57
57
u4_t LMICus915_convFreq (xref2cu1_t ptr );
58
58
#define LMICbandplan_convFreq (ptr ) LMICus915_convFreq(ptr)
59
59
60
+ static inline u1_t
61
+ LMICus915_queryMaxRx1DrOffset (void ) {
62
+ return 3 ;
63
+ }
64
+ #define LMICbandplan_queryMaxRx1DrOffset () LMICus915_queryMaxRx1DrOffset()
65
+
60
66
void LMICus915_initJoinLoop (void );
61
67
#define LMICbandplan_initJoinLoop () LMICus915_initJoinLoop()
62
68
You can’t perform that action at this time.
0 commit comments