Skip to content

Commit 0556699

Browse files
committed
Boolean checks should not be inverted
1 parent ff9468a commit 0556699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/serial_backend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function initializeSerialBackend() {
6161
!GUI.connecting_to &&
6262
!["cli", "firmware_flasher"].includes(GUI.active_tab) &&
6363
PortHandler.portPicker.autoConnect &&
64-
!(Date.now() - rebootTimestamp > REBOOT_CONNECT_MAX_TIME_MS)
64+
Date.now() - rebootTimestamp <= REBOOT_CONNECT_MAX_TIME_MS
6565
) {
6666
connectDisconnect();
6767
}

0 commit comments

Comments
 (0)