Skip to content

Commit

Permalink
get shim fixed up
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Nov 11, 2024
1 parent bc837cb commit fbd1ddd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions libs/core/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ namespace control {
microbit_reset();
}

//%
void singleSimulator() { }

/**
* Blocks the current fiber for the given microseconds
* @param micros number of micro-seconds to wait. eg: 4
Expand Down
6 changes: 3 additions & 3 deletions libs/core/control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ namespace control {
export function runInBackground(a: () => void) {
control.inBackground(a);
}

/**
* Allow only one simulator
*/
//% shim=TD_NOOP
export function singleSimulator(): void {
//% shim=pxt::singleSimulator
export function singleSimulator(msg: string) {

}

/**
Expand Down
1 change: 0 additions & 1 deletion pxtarget.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@
"dockerImage": "pext/yotta:gcc5"
},
"multiVariants": [
"mbdal",
"mbcodal"
],
"alwaysMultiVariant" : true,
Expand Down

0 comments on commit fbd1ddd

Please sign in to comment.