Merge pull request #7982 from hasnainvirk/mem_overrun

LoRaWAN: Memory overrun correction
pull/8156/head
Martin Kojtal 2018-09-17 14:43:13 +02:00 committed by GitHub
commit aca7740f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ LoRaPHYCN470::LoRaPHYCN470()
} }
// Initialize the channels default mask // Initialize the channels default mask
for (uint8_t i = 0; i < CN470_MAX_NB_CHANNELS; i++) { for (uint8_t i = 0; i < CN470_CHANNEL_MASK_SIZE; i++) {
default_channel_mask[i] = 0xFFFF & fsb_mask[i]; default_channel_mask[i] = 0xFFFF & fsb_mask[i];
} }