Adding shadow block to serial write buffer (#1111)
This commit is contained in:
parent
0c226d29d3
commit
51a485580b
@ -113,7 +113,7 @@ namespace serial {
|
||||
/**
|
||||
* Send a buffer through serial connection
|
||||
*/
|
||||
//% blockId=serial_writebuffer block="serial|write buffer %buffer"
|
||||
//% blockId=serial_writebuffer block="serial|write buffer %buffer=serial_readbuffer"
|
||||
//% help=serial/write-buffer advanced=true weight=6
|
||||
void writeBuffer(Buffer buffer) {
|
||||
if (!buffer) return;
|
||||
|
2
libs/core/shims.d.ts
vendored
2
libs/core/shims.d.ts
vendored
@ -799,7 +799,7 @@ declare namespace serial {
|
||||
/**
|
||||
* Send a buffer through serial connection
|
||||
*/
|
||||
//% blockId=serial_writebuffer block="serial|write buffer %buffer"
|
||||
//% blockId=serial_writebuffer block="serial|write buffer %buffer=serial_readbuffer"
|
||||
//% help=serial/write-buffer advanced=true weight=6 shim=serial::writeBuffer
|
||||
function writeBuffer(buffer: Buffer): void;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user