Skip to content

Commit e215c4a

Browse files
committed
cleanup
1 parent 13a3851 commit e215c4a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ console.log("Press 9 to hide debug messages including network traffic");
3434
//console.log("Press a to request an info update from the lights");
3535

3636
var stdin = process.openStdin();
37-
process.stdin.setRawMode(true)
37+
process.stdin.setRawMode(true);
3838
process.stdin.resume();
3939

4040
var cycledColour = 0;

cli2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ console.log("Press 9 to hide debug messages including network traffic");
3737
//console.log("Press a to request an info update from the lights");
3838

3939
var stdin = process.openStdin();
40-
process.stdin.setRawMode(true)
40+
process.stdin.setRawMode(true);
4141
process.stdin.resume();
4242

4343
var hue = 0;

cli3.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var util = require('util');
44
var lx = lifx.init();
55

66
var stdin = process.openStdin();
7-
process.stdin.setRawMode(true)
7+
process.stdin.setRawMode(true);
88
process.stdin.resume();
99

1010
console.log("Control 2 lights independently: press numbers 1-8");

lifx.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Lifx.prototype._getPacketHandler = function() {
4646

4747
Lifx.prototype._gotPacket = function(data, gw) {
4848
if (debug) console.log(" T- " + data.toString("hex"));
49-
49+
5050
switch (data[32]) {
5151

5252
case 0x6b:
@@ -108,7 +108,7 @@ Lifx.prototype.startDiscovery = function() {
108108
var self = this;
109109
var UDPClient = dgram.createSocket("udp4");
110110
UDPClient.unref(); // Stop this from preventing Node from ending
111-
111+
112112
UDPClient.on("error", function (err) {
113113
console.log("UDP error " + err);
114114
});
@@ -185,7 +185,7 @@ Gateway.prototype.connect = function(cb) {
185185
self.connect();
186186
}
187187
});
188-
}
188+
};
189189

190190
Lifx.prototype.findBulbs = function() {
191191
this.gateways.forEach(function(g) {

0 commit comments

Comments
 (0)