Skip to content

Commit

Permalink
fix C3 build 'error'
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Jul 10, 2024
1 parent 491768e commit 6a31237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsinteractive.c
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ void jsiIdle() {
JsSysTime timeoutTime = jsiLastIdleTime + (JsSysTime)jsvGetLongIntegerAndUnLock(jsvObjectGetChildIfExists(timeout, "time"));
jsvUnLock(jsvObjectSetChild(timeout, "time", jsvNewFromLongInteger((JsSysTime)(eventTime - jsiLastIdleTime) + debounce)));
jsvObjectSetChildAndUnLock(timeout, "state", jsvNewFromBool(pinIsHigh));
if (ignoreEvent || (eventTime > timeoutTime) && (pinIsHigh!=oldWatchState)) {
if (ignoreEvent || ((eventTime > timeoutTime) && (pinIsHigh!=oldWatchState))) {
// timeout should have fired, but we didn't get around to executing it!
// Do it now (with the old timeout time)
executeNow = !ignoreEvent;
Expand Down

0 comments on commit 6a31237

Please sign in to comment.