From a7c81358aa4dbd0c8ec9ad5e4f8a673eed264238 Mon Sep 17 00:00:00 2001 From: "Matthias L. Jugel" Date: Fri, 18 Aug 2017 12:55:52 +0200 Subject: [PATCH] revert code, may be included if decided to be helpful, but for now it would complicate merging --- libs/core/serial.cpp | 12 ------------ libs/core/shims.d.ts | 9 --------- 2 files changed, 21 deletions(-) diff --git a/libs/core/serial.cpp b/libs/core/serial.cpp index 1c0897bc..512f3912 100644 --- a/libs/core/serial.cpp +++ b/libs/core/serial.cpp @@ -100,16 +100,4 @@ namespace serial { uBit.serial.redirect(txp->name, rxp->name); uBit.serial.baud((int)rate); } - - /** - * Reset the serial instance to use the USBTX and USBRX at the default baud rate. - */ - //% weight=10 - //% help=serial/reset - //% blockId=serial_reset block="serial pin reset" - //% blockExternalInputs=1 - void reset() { - uBit.serial.redirect(USBTX, USBRX); - uBit.serial.baud(MICROBIT_SERIAL_DEFAULT_BAUD_RATE); - } } diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 7cd61794..0ba88887 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -760,15 +760,6 @@ declare namespace serial { //% blockId=serial_redirect block="serial|redirect to|TX %tx|RX %rx|at baud rate %rate" //% blockExternalInputs=1 shim=serial::redirect function redirect(tx: SerialPin, rx: SerialPin, rate: BaudRate): void; - - /** - * Reset the serial instance to use the USBTX and USBRX at the default baud rate. - */ - //% weight=10 - //% help=serial/reset - //% blockId=serial_reset block="serial pin reset" - //% blockExternalInputs=1 shim=serial::reset - function reset(): void; }