File tree Expand file tree Collapse file tree 9 files changed +81
-36
lines changed Expand file tree Collapse file tree 9 files changed +81
-36
lines changed Original file line number Diff line number Diff line change @@ -1073,10 +1073,6 @@ int main( void )
10731073 mibReq .Param .SystemMaxRxError = 20 ;
10741074 LoRaMacMibSetRequestConfirm ( & mibReq );
10751075
1076- mibReq .Type = MIB_DEVICE_CLASS ;
1077- mibReq .Param .Class = CLASS_C ;
1078- LoRaMacMibSetRequestConfirm ( & mibReq );
1079-
10801076 LoRaMacStart ( );
10811077
10821078 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1147,6 +1143,15 @@ int main( void )
11471143 {
11481144 if ( NextTx == true )
11491145 {
1146+ mibReq .Type = MIB_DEVICE_CLASS ;
1147+ LoRaMacMibGetRequestConfirm ( & mibReq );
1148+
1149+ if ( mibReq .Param .Class != CLASS_C )
1150+ {
1151+ mibReq .Param .Class = CLASS_C ;
1152+ LoRaMacMibSetRequestConfirm ( & mibReq );
1153+ }
1154+
11501155 PrepareTxFrame ( AppPort );
11511156
11521157 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1166,10 +1166,6 @@ int main( void )
11661166 mibReq .Param .SystemMaxRxError = 20 ;
11671167 LoRaMacMibSetRequestConfirm ( & mibReq );
11681168
1169- mibReq .Type = MIB_DEVICE_CLASS ;
1170- mibReq .Param .Class = CLASS_C ;
1171- LoRaMacMibSetRequestConfirm ( & mibReq );
1172-
11731169 LoRaMacStart ( );
11741170
11751171 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1240,6 +1236,15 @@ int main( void )
12401236 {
12411237 if ( NextTx == true )
12421238 {
1239+ mibReq .Type = MIB_DEVICE_CLASS ;
1240+ LoRaMacMibGetRequestConfirm ( & mibReq );
1241+
1242+ if ( mibReq .Param .Class != CLASS_C )
1243+ {
1244+ mibReq .Param .Class = CLASS_C ;
1245+ LoRaMacMibSetRequestConfirm ( & mibReq );
1246+ }
1247+
12431248 PrepareTxFrame ( AppPort );
12441249
12451250 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1071,10 +1071,6 @@ int main( void )
10711071 mibReq .Param .SystemMaxRxError = 20 ;
10721072 LoRaMacMibSetRequestConfirm ( & mibReq );
10731073
1074- mibReq .Type = MIB_DEVICE_CLASS ;
1075- mibReq .Param .Class = CLASS_C ;
1076- LoRaMacMibSetRequestConfirm ( & mibReq );
1077-
10781074 LoRaMacStart ( );
10791075
10801076 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1145,6 +1141,15 @@ int main( void )
11451141 {
11461142 if ( NextTx == true )
11471143 {
1144+ mibReq .Type = MIB_DEVICE_CLASS ;
1145+ LoRaMacMibGetRequestConfirm ( & mibReq );
1146+
1147+ if ( mibReq .Param .Class != CLASS_C )
1148+ {
1149+ mibReq .Param .Class = CLASS_C ;
1150+ LoRaMacMibSetRequestConfirm ( & mibReq );
1151+ }
1152+
11481153 PrepareTxFrame ( AppPort );
11491154
11501155 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1071,10 +1071,6 @@ int main( void )
10711071 mibReq .Param .SystemMaxRxError = 20 ;
10721072 LoRaMacMibSetRequestConfirm ( & mibReq );
10731073
1074- mibReq .Type = MIB_DEVICE_CLASS ;
1075- mibReq .Param .Class = CLASS_C ;
1076- LoRaMacMibSetRequestConfirm ( & mibReq );
1077-
10781074 LoRaMacStart ( );
10791075
10801076 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1145,6 +1141,15 @@ int main( void )
11451141 {
11461142 if ( NextTx == true )
11471143 {
1144+ mibReq .Type = MIB_DEVICE_CLASS ;
1145+ LoRaMacMibGetRequestConfirm ( & mibReq );
1146+
1147+ if ( mibReq .Param .Class != CLASS_C )
1148+ {
1149+ mibReq .Param .Class = CLASS_C ;
1150+ LoRaMacMibSetRequestConfirm ( & mibReq );
1151+ }
1152+
11481153 PrepareTxFrame ( AppPort );
11491154
11501155 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1071,10 +1071,6 @@ int main( void )
10711071 mibReq .Param .SystemMaxRxError = 20 ;
10721072 LoRaMacMibSetRequestConfirm ( & mibReq );
10731073
1074- mibReq .Type = MIB_DEVICE_CLASS ;
1075- mibReq .Param .Class = CLASS_C ;
1076- LoRaMacMibSetRequestConfirm ( & mibReq );
1077-
10781074 LoRaMacStart ( );
10791075
10801076 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1145,6 +1141,15 @@ int main( void )
11451141 {
11461142 if ( NextTx == true )
11471143 {
1144+ mibReq .Type = MIB_DEVICE_CLASS ;
1145+ LoRaMacMibGetRequestConfirm ( & mibReq );
1146+
1147+ if ( mibReq .Param .Class != CLASS_C )
1148+ {
1149+ mibReq .Param .Class = CLASS_C ;
1150+ LoRaMacMibSetRequestConfirm ( & mibReq );
1151+ }
1152+
11481153 PrepareTxFrame ( AppPort );
11491154
11501155 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1098,10 +1098,6 @@ int main( void )
10981098 mibReq .Param .SystemMaxRxError = 20 ;
10991099 LoRaMacMibSetRequestConfirm ( & mibReq );
11001100
1101- mibReq .Type = MIB_DEVICE_CLASS ;
1102- mibReq .Param .Class = CLASS_C ;
1103- LoRaMacMibSetRequestConfirm ( & mibReq );
1104-
11051101 LoRaMacStart ( );
11061102
11071103 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1172,6 +1168,15 @@ int main( void )
11721168 {
11731169 if ( NextTx == true )
11741170 {
1171+ mibReq .Type = MIB_DEVICE_CLASS ;
1172+ LoRaMacMibGetRequestConfirm ( & mibReq );
1173+
1174+ if ( mibReq .Param .Class != CLASS_C )
1175+ {
1176+ mibReq .Param .Class = CLASS_C ;
1177+ LoRaMacMibSetRequestConfirm ( & mibReq );
1178+ }
1179+
11751180 PrepareTxFrame ( AppPort );
11761181
11771182 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1087,10 +1087,6 @@ int main( void )
10871087 mibReq .Param .SystemMaxRxError = 20 ;
10881088 LoRaMacMibSetRequestConfirm ( & mibReq );
10891089
1090- mibReq .Type = MIB_DEVICE_CLASS ;
1091- mibReq .Param .Class = CLASS_C ;
1092- LoRaMacMibSetRequestConfirm ( & mibReq );
1093-
10941090 LoRaMacStart ( );
10951091
10961092 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1161,6 +1157,15 @@ int main( void )
11611157 {
11621158 if ( NextTx == true )
11631159 {
1160+ mibReq .Type = MIB_DEVICE_CLASS ;
1161+ LoRaMacMibGetRequestConfirm ( & mibReq );
1162+
1163+ if ( mibReq .Param .Class != CLASS_C )
1164+ {
1165+ mibReq .Param .Class = CLASS_C ;
1166+ LoRaMacMibSetRequestConfirm ( & mibReq );
1167+ }
1168+
11641169 PrepareTxFrame ( AppPort );
11651170
11661171 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1087,10 +1087,6 @@ int main( void )
10871087 mibReq .Param .SystemMaxRxError = 20 ;
10881088 LoRaMacMibSetRequestConfirm ( & mibReq );
10891089
1090- mibReq .Type = MIB_DEVICE_CLASS ;
1091- mibReq .Param .Class = CLASS_C ;
1092- LoRaMacMibSetRequestConfirm ( & mibReq );
1093-
10941090 LoRaMacStart ( );
10951091
10961092 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1161,6 +1157,15 @@ int main( void )
11611157 {
11621158 if ( NextTx == true )
11631159 {
1160+ mibReq .Type = MIB_DEVICE_CLASS ;
1161+ LoRaMacMibGetRequestConfirm ( & mibReq );
1162+
1163+ if ( mibReq .Param .Class != CLASS_C )
1164+ {
1165+ mibReq .Param .Class = CLASS_C ;
1166+ LoRaMacMibSetRequestConfirm ( & mibReq );
1167+ }
1168+
11641169 PrepareTxFrame ( AppPort );
11651170
11661171 NextTx = SendFrame ( );
Original file line number Diff line number Diff line change @@ -1087,10 +1087,6 @@ int main( void )
10871087 mibReq .Param .SystemMaxRxError = 20 ;
10881088 LoRaMacMibSetRequestConfirm ( & mibReq );
10891089
1090- mibReq .Type = MIB_DEVICE_CLASS ;
1091- mibReq .Param .Class = CLASS_C ;
1092- LoRaMacMibSetRequestConfirm ( & mibReq );
1093-
10941090 LoRaMacStart ( );
10951091
10961092 mibReq .Type = MIB_NETWORK_ACTIVATION ;
@@ -1161,6 +1157,15 @@ int main( void )
11611157 {
11621158 if ( NextTx == true )
11631159 {
1160+ mibReq .Type = MIB_DEVICE_CLASS ;
1161+ LoRaMacMibGetRequestConfirm ( & mibReq );
1162+
1163+ if ( mibReq .Param .Class != CLASS_C )
1164+ {
1165+ mibReq .Param .Class = CLASS_C ;
1166+ LoRaMacMibSetRequestConfirm ( & mibReq );
1167+ }
1168+
11641169 PrepareTxFrame ( AppPort );
11651170
11661171 NextTx = SendFrame ( );
You can’t perform that action at this time.
0 commit comments