aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUri Shaked2019-12-07 12:41:31 +0200
committerUri Shaked2019-12-07 12:41:31 +0200
commit02373fe7e17339167f9b7d792e5320d1aa5c103a (patch)
tree3812cc13427f5d9c266087ad7ad12d233fb79c6f
parentMerge pull request #7 from wokwi/dependabot/npm_and_yarn/serialize-to-js-3.0.1 (diff)
downloadavr8js-02373fe7e17339167f9b7d792e5320d1aa5c103a.tar.gz
avr8js-02373fe7e17339167f9b7d792e5320d1aa5c103a.tar.bz2
avr8js-02373fe7e17339167f9b7d792e5320d1aa5c103a.zip
fix(demo): speed up execution
Diffstat (limited to '')
-rw-r--r--demo/src/execute.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/src/execute.ts b/demo/src/execute.ts
index f2c7d82..3a2f162 100644
--- a/demo/src/execute.ts
+++ b/demo/src/execute.ts
@@ -43,7 +43,7 @@ export class AVRRunner {
avrInstruction(this.cpu);
this.timer.tick();
this.usart.tick();
- if (this.cpu.cycles % 50000 === 0) {
+ if (this.cpu.cycles % 500000 === 0) {
callback(this.cpu);
await new Promise((resolve) => setTimeout(resolve, 0));
if (this.stopped) {