Merge pull request #6141 from hasnainvirk/dr_bug_fix

Verifying datarate bug fix
pull/6162/head
Cruz Monrreal 2018-02-20 13:44:51 -06:00 committed by GitHub
commit 24a3acd647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ bool LoRaPHY::verify_channel_DR(uint8_t nb_channels, uint16_t* channel_mask,
return false;
}
for (uint8_t i; i < phy_params.max_channel_cnt; i++) {
for (uint8_t i = 0; i < phy_params.max_channel_cnt; i++) {
if (mask_bit_test(channel_mask, i)) {
// Check datarate validity for enabled channels
if (val_in_range(dr, (channels[i].dr_range.fields.min & 0x0F),