From 00bf5e52d7b728f011dab4508f9e410367104ca1 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Fri, 12 May 2017 12:49:41 +0100 Subject: [PATCH] shims.d.ts should never be included in simulator --- sim/state/misc.ts | 2 +- sim/state/neopixel.ts | 6 +++--- sim/visuals/neopixel.ts | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sim/state/misc.ts b/sim/state/misc.ts index 18b51805..83ea7707 100644 --- a/sim/state/misc.ts +++ b/sim/state/misc.ts @@ -186,7 +186,7 @@ namespace pxsim.bluetooth { // TODO } export function advertiseUrl(url: string, power: number, connectable: boolean) { } - export function advertiseUidBuffer(nsAndInstance: Buffer, power: number, connectable: boolean) { } + export function advertiseUidBuffer(nsAndInstance: RefBuffer, power: number, connectable: boolean) { } export function stopAdvertising() { } export function setTransmitPower(power: number) {} } diff --git a/sim/state/neopixel.ts b/sim/state/neopixel.ts index c974fb16..e57f9a9b 100644 --- a/sim/state/neopixel.ts +++ b/sim/state/neopixel.ts @@ -1,11 +1,11 @@ namespace pxsim { - export function sendBufferAsm(buffer: Buffer, pin: DigitalPin) { + export function sendBufferAsm(buffer: RefBuffer, pin: DigitalPin) { let b = board(); if (b) { let np = b.neopixelState; if (np) { - let buf = (buffer).data; - np.updateBuffer(buf, pin); + let buf = buffer.data; + np.updateBuffer(buf as any, pin); // TODO this is wrong runtime.queueDisplayUpdate(); } } diff --git a/sim/visuals/neopixel.ts b/sim/visuals/neopixel.ts index ab6b6f7a..4b63387b 100644 --- a/sim/visuals/neopixel.ts +++ b/sim/visuals/neopixel.ts @@ -1,6 +1,5 @@ /// /// -/// /// namespace pxsim.visuals { @@ -240,4 +239,4 @@ namespace pxsim.visuals { } public updateTheme(): void { } } -} \ No newline at end of file +}