From 8a89f8c76b1f92d5c8f3c72673501be4d8e3c91d Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Tue, 12 Nov 2024 10:14:54 -0800 Subject: [PATCH] control function to turn off creation of second sim (#1486) * add new function * remove getResume --- libs/base/sim/control.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libs/base/sim/control.ts b/libs/base/sim/control.ts index 423427bdb..849c3ac65 100644 --- a/libs/base/sim/control.ts +++ b/libs/base/sim/control.ts @@ -43,6 +43,12 @@ namespace pxsim.control { }) const cb = getResume(); } + export function singleSimulator() { + pxsim.Runtime.postMessage({ + type: "simulator", + command: "single" + }) + } export function waitMicros(micros: number) { thread.pause(micros / 1000); // it prempts not much we can do here. }