From 65bc1f05bc4a5ff59d126ca7fc0b0f502f8ecf85 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 11 Oct 2017 13:37:34 -0700 Subject: [PATCH] Fix for missing simulator function (#549) https://github.com/Microsoft/pxt/issues/3193 --- sim/state/misc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim/state/misc.ts b/sim/state/misc.ts index 597b4720..de0beb9c 100644 --- a/sim/state/misc.ts +++ b/sim/state/misc.ts @@ -193,13 +193,13 @@ namespace pxsim.bluetooth { export function startUartService(): void { // TODO } - export function uartWrite(s: string): void { + export function uartWriteString(s: string): void { serial.writeString(s) } export function uartReadUntil(del: string): string { return serial.readUntil(del); } - export function onDataReceived(delimiters: string, handler: RefAction) { + export function onUartDataReceived(delimiters: string, handler: RefAction) { let b = board(); b.bus.listen(DAL.MICROBIT_ID_BLE_UART, DAL.MICROBIT_UART_S_EVT_DELIM_MATCH, handler); }