tentative serial fix for #66

This commit is contained in:
Peli de Halleux 2016-05-18 11:57:10 -07:00
parent 5962c28b0e
commit bfac2910da

View File

@ -11,8 +11,7 @@ namespace serial {
//% help=serial/write-line blockGap=8 //% help=serial/write-line blockGap=8
//% blockId=serial_writeline block="serial|write line %text" //% blockId=serial_writeline block="serial|write line %text"
export function writeLine(text: string): void { export function writeLine(text: string): void {
writeString(text); writeString(text + "\r\n");
writeString("\r\n");
} }
/** /**
@ -34,10 +33,7 @@ namespace serial {
//% help=serial/write-value //% help=serial/write-value
//% blockId=serial_writevalue block="serial|write value %name|= %value" //% blockId=serial_writevalue block="serial|write value %name|= %value"
export function writeValue(name: string, value: number): void { export function writeValue(name: string, value: number): void {
writeString(name); writeString(name + ":" + value + "\r\n");
writeString(":");
writeNumber(value);
writeLine("");
} }
/** /**