Skip to content

Commit a990338

Browse files
committed
minor tweak for probable bad IF condition
1 parent feb45fe commit a990338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/nrf5x/bluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ void jsble_update_security() {
19361936
jsble_check_error(err_code);
19371937
}
19381938
// If UART encryption status changed, we need to update flags and restart Bluetooth
1939-
if ((bleStatus&BLE_ENCRYPT_UART) != encryptUart) {
1939+
if (((bleStatus&BLE_ENCRYPT_UART)!=0) != encryptUart) {
19401940
if (encryptUart) bleStatus |= BLE_ENCRYPT_UART;
19411941
else bleStatus &= ~BLE_ENCRYPT_UART;
19421942
// But only restart if the UART was enabled

0 commit comments

Comments
 (0)