Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 9631161

Browse files
author
Daniel Campora
committed
lib/lora: Add missing parenthesis when checking the channel mask.
1 parent 764a544 commit 9631161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lora/mac/LoRaMac.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ static void ProcessMacCommands( uint8_t *payload, uint8_t macIndex, uint8_t comm
24642464
channelsMask[3] = 0x0000;
24652465

24662466
// We must NOT disable all the channels
2467-
if ( chMask & 0x00FF != 0 )
2467+
if ( ( chMask & 0x00FF ) != 0 )
24682468
{
24692469
// Set the 500 KHz channel mask equal to chMask
24702470
channelsMask[4] = chMask;

0 commit comments

Comments
 (0)