From ac8131e36e9e2656f59cc7ed0bdfa0342996f5b5 Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Mon, 11 Nov 2024 14:31:26 -0800 Subject: [PATCH] plumbing hooked up... --- libs/core/control.cpp | 3 +++ libs/core/control.ts | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/core/control.cpp b/libs/core/control.cpp index fe642c5efba..031c37e7b92 100644 --- a/libs/core/control.cpp +++ b/libs/core/control.cpp @@ -271,6 +271,9 @@ namespace control { microbit_reset(); } + + + //% void singleSimulator() { } diff --git a/libs/core/control.ts b/libs/core/control.ts index 2fdc47cae64..57d6f7a1c22 100644 --- a/libs/core/control.ts +++ b/libs/core/control.ts @@ -16,11 +16,12 @@ namespace control { export function runInBackground(a: () => void) { control.inBackground(a); } + /** * Allow only one simulator */ - //% shim=pxt::singleSimulator - export function singleSimulator(msg: string) { + //% shim=control::singleSimulator + export function singleSimulator() { }