diff --git a/libs/core/basic.cpp b/libs/core/basic.cpp index 8ee09b4a..a6c608a2 100644 --- a/libs/core/basic.cpp +++ b/libs/core/basic.cpp @@ -112,7 +112,7 @@ namespace basic { * Repeats the code forever in the background. On each iteration, allows other codes to run. * @param body code to execute */ - //% help=basic/forever weight=55 blockGap=8 + //% help=basic/forever weight=55 blockGap=8 blockAllowMultiple=1 //% blockId=device_forever block="forever" icon="\uf01e" void forever(Action a) { if (a != 0) { diff --git a/libs/core/control.cpp b/libs/core/control.cpp index dbf50d5b..e6df1365 100644 --- a/libs/core/control.cpp +++ b/libs/core/control.cpp @@ -121,7 +121,7 @@ namespace control { /** * Schedules code that run in the background. */ - //% help=control/in-background + //% help=control/in-background blockAllowMultiple=1 //% blockId="control_in_background" block="run in background" blockGap=8 void inBackground(Action a) { runInBackground(a); diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 2b5a9120..db89e499 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -195,7 +195,7 @@ declare namespace basic { * Repeats the code forever in the background. On each iteration, allows other codes to run. * @param body code to execute */ - //% help=basic/forever weight=55 blockGap=8 + //% help=basic/forever weight=55 blockGap=8 blockAllowMultiple=1 //% blockId=device_forever block="forever" icon="\uf01e" shim=basic::forever function forever(a: () => void): void; @@ -362,7 +362,7 @@ declare namespace control { /** * Schedules code that run in the background. */ - //% help=control/in-background + //% help=control/in-background blockAllowMultiple=1 //% blockId="control_in_background" block="run in background" blockGap=8 shim=control::inBackground function inBackground(a: () => void): void;