revert code, may be included if decided to be helpful, but for now it would complicate merging

This commit is contained in:
Matthias L. Jugel 2017-08-18 12:55:52 +02:00
parent 879615dcc1
commit a7c81358aa
2 changed files with 0 additions and 21 deletions

View File

@ -100,16 +100,4 @@ namespace serial {
uBit.serial.redirect(txp->name, rxp->name); uBit.serial.redirect(txp->name, rxp->name);
uBit.serial.baud((int)rate); 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);
}
} }

View File

@ -760,15 +760,6 @@ declare namespace serial {
//% blockId=serial_redirect block="serial|redirect to|TX %tx|RX %rx|at baud rate %rate" //% blockId=serial_redirect block="serial|redirect to|TX %tx|RX %rx|at baud rate %rate"
//% blockExternalInputs=1 shim=serial::redirect //% blockExternalInputs=1 shim=serial::redirect
function redirect(tx: SerialPin, rx: SerialPin, rate: BaudRate): void; 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;
} }