From 51a485580b45b58d65a45d60fadcc1ef3c8c0b2b Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Tue, 21 Aug 2018 10:25:59 -0700 Subject: [PATCH] Adding shadow block to serial write buffer (#1111) --- libs/core/serial.cpp | 2 +- libs/core/shims.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/serial.cpp b/libs/core/serial.cpp index 1feec211..82a5a979 100644 --- a/libs/core/serial.cpp +++ b/libs/core/serial.cpp @@ -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; diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 01f9c6ca..e5307273 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -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;