From 354196e01e2539c7656659b4ed34cbe31916a995 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Mon, 5 Dec 2016 09:17:42 -0800 Subject: [PATCH] missing block annotation on led.enable --- libs/core/_locales/core-strings.json | 1 + libs/core/led.cpp | 2 +- libs/core/shims.d.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/core/_locales/core-strings.json b/libs/core/_locales/core-strings.json index 2eff208c..264fced3 100644 --- a/libs/core/_locales/core-strings.json +++ b/libs/core/_locales/core-strings.json @@ -131,6 +131,7 @@ "input.temperature|block": "temperature (°C)", "input|block": "input", "led.brightness|block": "brightness", + "led.enable|block": "led enable %on", "led.plotBarGraph|block": "plot bar graph of %value |up to %high", "led.plot|block": "plot|x %x|y %y", "led.point|block": "point|x %x|y %y", diff --git a/libs/core/led.cpp b/libs/core/led.cpp index a0046c65..3666fe3e 100644 --- a/libs/core/led.cpp +++ b/libs/core/led.cpp @@ -95,7 +95,7 @@ namespace led { /** * Turns on or off the display */ - //% help=led/enable blockId=device_led_enable icon="\uf04d" + //% help=led/enable blockId=device_led_enable block="led enable %on" icon="\uf04d" //% advanced=true parts="ledmatrix" void enable(bool on) { if (on) uBit.display.enable(); diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 5eca9bc8..ea74ac63 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -497,7 +497,7 @@ declare namespace led { /** * Turns on or off the display */ - //% help=led/enable blockId=device_led_enable icon="\uf04d" + //% help=led/enable blockId=device_led_enable block="led enable %on" icon="\uf04d" //% advanced=true parts="ledmatrix" shim=led::enable function enable(on: boolean): void;