Skip to content

Commit 38e0d3b

Browse files
authored
Merge pull request #6300 from kivaisan/master
Fixes to LoRa PHY
2 parents cd9c28b + 5bfe056 commit 38e0d3b

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

features/lorawan/lorastack/phy/LoRaPHY.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,11 +657,11 @@ bool LoRaPHY::verify(verification_params_t* verify, phy_attributes_t phy_attribu
657657
if (phy_params.dl_dwell_time_setting == 0) {
658658
return val_in_range(verify->datarate,
659659
phy_params.min_rx_datarate,
660-
phy_params.min_rx_datarate);
660+
phy_params.max_rx_datarate);
661661
} else {
662662
return val_in_range(verify->datarate,
663663
phy_params.dwell_limit_datarate,
664-
phy_params.min_rx_datarate );
664+
phy_params.max_rx_datarate);
665665
}
666666
}
667667
case PHY_DEF_TX_POWER:

features/lorawan/lorastack/phy/LoRaPHYAS923.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ LoRaPHYAS923::LoRaPHYAS923(LoRaWANTimeHandler &lora_time)
280280
phy_params.payloads.table = (void *) max_payload_table;
281281
phy_params.payloads.size = 8;
282282
phy_params.payloads_with_repeater.table = (void *) max_payload_table_with_repeater;
283-
phy_params.payloads.size = 8;
283+
phy_params.payloads_with_repeater.size = 8;
284284

285285
// dwell time setting, 400 ms
286286
phy_params.ul_dwell_time_setting = 1;

features/lorawan/lorastack/phy/LoRaPHYAU915.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ LoRaPHYAU915::LoRaPHYAU915(LoRaWANTimeHandler &lora_time)
279279
phy_params.payloads.table = (void *) max_payload_AU915;
280280
phy_params.payloads.size = 16;
281281
phy_params.payloads_with_repeater.table = (void *) max_payload_with_repeater_AU915;
282-
phy_params.payloads.size = 16;
282+
phy_params.payloads_with_repeater.size = 16;
283283

284284
// dwell time setting
285285
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYCN470.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ LoRaPHYCN470::LoRaPHYCN470(LoRaWANTimeHandler &lora_time)
252252
phy_params.payloads.table = (void *) max_payloads_CN470;
253253
phy_params.payloads.size = 6;
254254
phy_params.payloads_with_repeater.table = (void *)max_payloads_with_repeater_CN470;
255-
phy_params.payloads.size = 6;
255+
phy_params.payloads_with_repeater.size = 6;
256256

257257
// dwell time setting
258258
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYCN779.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ LoRaPHYCN779::LoRaPHYCN779(LoRaWANTimeHandler &lora_time)
268268
phy_params.payloads.table = (void *) max_payloads_CN779;
269269
phy_params.payloads.size = 8;
270270
phy_params.payloads_with_repeater.table = (void *) max_payloads_with_repeater_CN779;
271-
phy_params.payloads.size = 8;
271+
phy_params.payloads_with_repeater.size = 8;
272272

273273
// dwell time setting
274274
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYEU433.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ LoRaPHYEU433::LoRaPHYEU433(LoRaWANTimeHandler &lora_time)
269269
phy_params.payloads.table = (void *) max_payloads_EU433;
270270
phy_params.payloads.size = 8;
271271
phy_params.payloads_with_repeater.table = (void *) max_payloads_with_repeater_EU433;
272-
phy_params.payloads.size = 8;
272+
phy_params.payloads_with_repeater.size = 8;
273273

274274
// dwell time setting
275275
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYEU868.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ LoRaPHYEU868::LoRaPHYEU868(LoRaWANTimeHandler &lora_time)
299299
phy_params.payloads.table = (void *) max_payloads_EU868;
300300
phy_params.payloads.size = 8;
301301
phy_params.payloads_with_repeater.table = (void *) max_payloads_repeater_EU868;
302-
phy_params.payloads.size = 8;
302+
phy_params.payloads_with_repeater.size = 8;
303303

304304
// dwell time setting
305305
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYIN865.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ LoRaPHYIN865::LoRaPHYIN865(LoRaWANTimeHandler &lora_time)
270270
phy_params.payloads.table = (void *) max_payloads_IN865;
271271
phy_params.payloads.size = 8;
272272
phy_params.payloads_with_repeater.table = (void *) max_payloads_with_repeater;
273-
phy_params.payloads.size = 8;
273+
phy_params.payloads_with_repeater.size = 8;
274274

275275
// dwell time setting
276276
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYKR920.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ LoRaPHYKR920::LoRaPHYKR920(LoRaWANTimeHandler &lora_time)
279279
phy_params.payloads.table = (void *) max_payloads_KR920;
280280
phy_params.payloads.size = 6;
281281
phy_params.payloads_with_repeater.table = (void *) max_payloads_with_repeater_KR920;
282-
phy_params.payloads.size = 6;
282+
phy_params.payloads_with_repeater.size = 6;
283283

284284
// dwell time setting
285285
phy_params.ul_dwell_time_setting = 0;

features/lorawan/lorastack/phy/LoRaPHYUS915.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ LoRaPHYUS915::LoRaPHYUS915(LoRaWANTimeHandler &lora_time)
271271
phy_params.payloads.table = (void *) max_payloads_US915;
272272
phy_params.payloads.size = 16;
273273
phy_params.payloads_with_repeater.table = (void *) max_payloads_with_repeater_US915;
274-
phy_params.payloads.size = 16;
274+
phy_params.payloads_with_repeater.size = 16;
275275

276276
// dwell time setting
277277
phy_params.ul_dwell_time_setting = 0;

0 commit comments

Comments
 (0)