trying to fix concurrency error

This commit is contained in:
Clément Le Bihan
2021-12-10 14:45:55 +01:00
parent 18c6232fcb
commit 5c18be4a6b
+1 -1
View File
@@ -26,7 +26,7 @@ async def to_chroma_case(data):
colored_pixels = notePixels[data["key"].lower()]
for pixelId in colored_pixels:
pixels[pixelId] = data["color"]
await asyncio.sleep(data['duration'] / 1000)
await asyncio.sleep((data['duration'] / 1000) - 5)
for pixelId in colored_pixels:
pixels[pixelId] = 0