Skip to content

Commit 6ef331b

Browse files
author
Antti Kauppila
committed
LoRa: Fixed cflist decoding issue
- This fixes defect IOTCELL-754
1 parent 75cb4d7 commit 6ef331b

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
@@ -715,7 +715,7 @@ void LoRaPHY::apply_cf_list(const uint8_t* payload, uint8_t size)
715715
// should override this function in the implementation of that particular
716716
// PHY.
717717
for (uint8_t i = 0, channel_id = phy_params.default_channel_cnt;
718-
channel_id < phy_params.max_channel_cnt; i+=phy_params.default_channel_cnt, channel_id++) {
718+
channel_id < phy_params.max_channel_cnt; i+=3, channel_id++) {
719719
if (channel_id < (phy_params.cflist_channel_cnt + phy_params.default_channel_cnt)) {
720720
// Channel frequency
721721
new_channel.frequency = (uint32_t) payload[i];

0 commit comments

Comments
 (0)