Skip to content

Commit

Permalink
Bangle.js: Fix terminal's repeated call to '.flip' that broke double …
Browse files Browse the repository at this point in the history
…buffering on Bangle.js 1

fix espruino/BangleApps#3003
  • Loading branch information
gfwilliams committed Oct 16, 2023
1 parent bed1d37 commit 442c0c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
jsvFindChildFromString enhancement - adds 10% performance on minified code
Remove createChild argument from jsvFindChildFromString, add jsvFindOrAddChildFromString instead
Add ES9 optional catch binding (`try {} catch {}`)
Bangle.js: Fix terminal's repeated call to '.flip' that broke double buffering on Bangle.js 1

2v19 : Fix Object.values/entries for numeric keys after 2v18 regression (fix #2375)
nRF52: for SD>5 use static buffers for advertising and scan response data (#2367)
Expand Down
2 changes: 1 addition & 1 deletion libs/graphics/jswrap_terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ bool jswrap_terminal_idle() {
JsVar *flip = jsvObjectGetChildIfExists(gfx.graphicsVar, "flip");
if (flip) jsvUnLock2(jspExecuteFunction(flip,gfx.graphicsVar,0,0),flip);
jsvUnLock(gfx.graphicsVar);
terminalNeedsFlip = false;
}
#endif
terminalNeedsFlip = false;
}
return false;
}
Expand Down

0 comments on commit 442c0c7

Please sign in to comment.