Skip to content

Commit

Permalink
control function to turn off creation of second sim (#1486)
Browse files Browse the repository at this point in the history
* add new function

* remove getResume
  • Loading branch information
tballmsft authored Nov 12, 2024
1 parent 21504b0 commit 8a89f8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/base/sim/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ namespace pxsim.control {
})
const cb = getResume();
}
export function singleSimulator() {
pxsim.Runtime.postMessage(<pxsim.SimulatorCommandMessage>{
type: "simulator",
command: "single"
})
}
export function waitMicros(micros: number) {
thread.pause(micros / 1000); // it prempts not much we can do here.
}
Expand Down

0 comments on commit 8a89f8c

Please sign in to comment.