Skip to content

Commit

Permalink
🔥Neopixel issue해결
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeJuneJoung committed Sep 3, 2024
1 parent ae5f3ca commit 5385ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/neo_cannon.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5385ede

Please sign in to comment.