diff --git a/pixelit/core.js b/pixelit/core.js index 94aca3b..eb228c3 100644 --- a/pixelit/core.js +++ b/pixelit/core.js @@ -74,16 +74,16 @@ module.exports = (red) => { shape: 'ring', text: 'Sleep Mode Active!' }); - sendToPixelItScreen(createScreenJson(msg)); + sendToPixelItScreen(await createScreenJson(msg)); } else if (msg.sleepMode != undefined && tools.booleanConvert(msg.sleepMode) == false) { sleepModeActive = false; context.set('sleepModeActive', sleepModeActive); - sendToPixelItScreen(createScreenJson(msg)); + sendToPixelItScreen(await createScreenJson(msg)); getNextScreen(); } else if (sleepModeActive == false) { - sendToPixelItScreen(createScreenJson(msg)); + sendToPixelItScreen(await createScreenJson(msg)); } }