From 37d5fdcd9be1b0c99940cf4ff745045951594d84 Mon Sep 17 00:00:00 2001 From: velvettear Date: Mon, 28 Feb 2022 02:19:02 +0100 Subject: [PATCH] wait for result --- libs/blinkstick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/blinkstick.js b/libs/blinkstick.js index 4c52c14..2a5211d 100644 --- a/libs/blinkstick.js +++ b/libs/blinkstick.js @@ -84,7 +84,7 @@ async function complex(config) { const tmpConfig = JSON.parse(JSON.stringify(config)); await singleAnimation(tmpConfig, indices[index]); if (index === 0) { - config = setColorIfRandom(config); + config = await setColorIfRandom(config); } config.repetitions.done++; }