Skip to content

Commit aa65a10

Browse files
Antti Kauppilaadbridge
authored andcommitted
LoRa: Fixed cflist decoding issue
- This fixes defect IOTCELL-754
1 parent 9b4491c commit aa65a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/lorawan/lorastack/phy/LoRaPHY.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ void LoRaPHY::apply_cf_list(cflist_params_t* cf_list)
719719
// should override this function in the implementation of that particular
720720
// PHY.
721721
for (uint8_t i = 0, channel_id = phy_params.default_channel_cnt;
722-
channel_id < phy_params.max_channel_cnt; i+=phy_params.default_channel_cnt, channel_id++) {
722+
channel_id < phy_params.max_channel_cnt; i+=3, channel_id++) {
723723
if (channel_id < (phy_params.cflist_channel_cnt + phy_params.default_channel_cnt)) {
724724
// Channel frequency
725725
new_channel.frequency = (uint32_t) cf_list->payload[i];

0 commit comments

Comments
 (0)