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; }