Skip to content

Commit

Permalink
Merge branch dev into master
Browse files Browse the repository at this point in the history
  • Loading branch information
DatNoHand committed Aug 13, 2018
1 parent e31eb95 commit 4bc920b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion server/Led.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ledlib.setAllLeds = (_color, _amount = 1, _on = true) => {
ledlib.setLed(i, _color, _on)
}
for (let i = 0; i < ledlib.walls.length; i++) {
ledlib.wall_data[i] = [ true, _color, _amount ]
ledlib.wall_data[i] = [ _on, _color, _amount ]
}
return ledlib.color = _color
}
Expand Down
2 changes: 0 additions & 2 deletions server/public/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ function Start() {
// Server Messages
ws.onmessage = function(e) {
var msg = JSON.parse(e.data);
console.log(msg)

switch(msg.type) {
case 'status':
Expand Down Expand Up @@ -257,7 +256,6 @@ function SetLed(bright, amount, _on = true) {
}
}
SendBrightness(bright)
console.log(wall_data)
send({type: 'led', wall_data: wall_data})
}

Expand Down
1 change: 0 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ wss.on('connection', function(ws, req) {
LedLib.render()
break;
case 'led':
LedLib.setBrightness(msg.bright)
/** @typedef {Array} wall_data */
LedLib.setStripAdvanced(msg.wall_data)
LedLib.render()
Expand Down

0 comments on commit 4bc920b

Please sign in to comment.