From 5385edec852da1b446483172dd301cc75670b22d Mon Sep 17 00:00:00 2001 From: TaeJuneJoung Date: Tue, 3 Sep 2024 13:47:12 +0900 Subject: [PATCH] =?UTF-8?q?:fire:Neopixel=20issue=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/neo_cannon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/neo_cannon.js b/app/modules/neo_cannon.js index ce1d004c0..25765e8d8 100644 --- a/app/modules/neo_cannon.js +++ b/app/modules/neo_cannon.js @@ -166,7 +166,7 @@ Module.prototype.handleRemoteData = function (handler) { const green = newValue.data.green; const blue = newValue.data.blue; - if (newValue.data.num) { + if (newValue.data.num !== undefined) { const num = newValue.data.num; workerData.neopixel[num].r = red; workerData.neopixel[num].g = green;