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++; }