Skip to content

Commit 65ac615

Browse files
authored
Merge pull request #6557 from AnttiKauppila/IOTCELL-754
LoRa: Fixed cflist decoding issue
2 parents f5385e7 + 6ef331b commit 65ac615

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)