diff --git a/pxt.json b/pxt.json index a655cde..68cd70b 100644 --- a/pxt.json +++ b/pxt.json @@ -7,7 +7,7 @@ "radio": "*", "microphone": "*", "datalogger": "*", - "arcadeshield": "github:microsoft/pxt-arcadeshield#v0.0.8", + "pxt-arcadeshield": "github:microsoft/pxt-arcadeshield#8b0e31213a5d04e18c758fa83b38d802ace40856", "jacdac": "github:microsoft/pxt-jacdac#v1.9.28", "jacdac-light-level": "github:microsoft/pxt-jacdac/light-level#v1.9.28", "jacdac-soil-moisture": "github:microsoft/pxt-jacdac/tree/master/soil-moisture#v1.9.28", diff --git a/scene.ts b/scene.ts index ef4d18c..a9f5392 100644 --- a/scene.ts +++ b/scene.ts @@ -93,7 +93,7 @@ namespace microcode { this.draw() if (Options.fps) Screen.image.print(context.EventContext.lastStats, 1, 1, 15) - if (screen !== Screen.image) + if (screen() !== Screen.image) screen().drawBitmap(Screen.image, 0, 0) }) context.eventContext().registerFrameHandler(SCREEN_PRIORITY, () => { diff --git a/screen.ts b/screen.ts index b028c19..6aa2645 100644 --- a/screen.ts +++ b/screen.ts @@ -45,13 +45,13 @@ } public static get image(): Bitmap { if (!Screen.image_) { - Screen.image_ = screen + Screen.image_ = screen() Screen.updateBounds() } return Screen.image_ } public static resetScreenImage() { - Screen.image_ = screen + Screen.image_ = screen() Screen.updateBounds() }