Skip to content

Commit 0af94e2

Browse files
committed
Fix time math... oops!
1 parent 40ada4f commit 0af94e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/Switches.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace DcsBios {
107107
(millis() - lastDebounceTime) > debounceDelay_)
108108
{
109109
// Switch has debounced and changed state
110-
if( lastSwitchStateTime - millis() >= 200 )
110+
if( millis() - lastSwitchStateTime > 200 )
111111
{
112112
// Switch/cover delay has been satisfied.
113113
if( state )

0 commit comments

Comments
 (0)