From 412e5bd0349268d311abcb93e6de59ec21b68b84 Mon Sep 17 00:00:00 2001 From: Thomas Denney Date: Tue, 9 Aug 2016 16:10:53 +0100 Subject: [PATCH] Fix doc comment --- libs/microbit-bluetooth/bluetooth.cpp | 4 ++-- libs/microbit-bluetooth/shims.d.ts | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libs/microbit-bluetooth/bluetooth.cpp b/libs/microbit-bluetooth/bluetooth.cpp index 81585e9d..3d668351 100644 --- a/libs/microbit-bluetooth/bluetooth.cpp +++ b/libs/microbit-bluetooth/bluetooth.cpp @@ -84,8 +84,8 @@ namespace bluetooth { /** * Starts the Bluetooth UART service */ - // help=bluetooth/start-uart-service - // blockId=bluetooth_start_uart_service block="bluetooth uart service" blockGap=8 + //% help=bluetooth/start-uart-service + //% blockId=bluetooth_start_uart_service block="bluetooth uart service" blockGap=8 void startUartService() { if (uart) return; // 61 octet buffer size is 3 x (MTU - 3) + 1 diff --git a/libs/microbit-bluetooth/shims.d.ts b/libs/microbit-bluetooth/shims.d.ts index 0606d684..2cbc3c0c 100644 --- a/libs/microbit-bluetooth/shims.d.ts +++ b/libs/microbit-bluetooth/shims.d.ts @@ -49,6 +49,13 @@ declare namespace bluetooth { //% blockId=bluetooth_start_button_service block="bluetooth button service" blockGap=8 shim=bluetooth::startButtonService function startButtonService(): void; + /** + * Starts the Bluetooth UART service + */ + //% help=bluetooth/start-uart-service + //% blockId=bluetooth_start_uart_service block="bluetooth uart service" blockGap=8 shim=bluetooth::startUartService + function startUartService(): void; + /** * Writes to the Bluetooth UART service buffer. From there the data is transmitted over Bluetooth to a connected device. */