revert code, may be included if decided to be helpful, but for now it would complicate merging
This commit is contained in:
parent
879615dcc1
commit
a7c81358aa
@ -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);
|
||||
}
|
||||
}
|
||||
|
9
libs/core/shims.d.ts
vendored
9
libs/core/shims.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user