Skip to content

Commit d44ecd9

Browse files
authored
RF24: Fix logical operator (#990)
1 parent 3830c5d commit d44ecd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/RF24/RF24.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ LOCAL uint8_t RF24_getNodeID(void)
366366
LOCAL bool RF24_sanityCheck(void)
367367
{
368368
// detect HW defect, configuration errors or interrupted SPI line, CE disconnect cannot be detected
369-
return (RF24_readByteRegister(RF24_REG_RF_SETUP) == RF24_RF_SETUP) & (RF24_readByteRegister(
369+
return (RF24_readByteRegister(RF24_REG_RF_SETUP) == RF24_RF_SETUP) && (RF24_readByteRegister(
370370
RF24_REG_RF_CH) == MY_RF24_CHANNEL);
371371
}
372372
LOCAL int16_t RF24_getTxPowerLevel(void)

0 commit comments

Comments
 (0)