Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incidental global declarations #85

Merged
merged 1 commit into from
Mar 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ zwave.on('node ready', function(nodeid, nodeinfo) {
nodeinfo.name,
nodeinfo.type,
nodeinfo.loc);
for (comclass in nodes[nodeid]['classes']) {
for (var comclass in nodes[nodeid]['classes']) {
switch (comclass) {
case 0x25: // COMMAND_CLASS_SWITCH_BINARY
case 0x26: // COMMAND_CLASS_SWITCH_MULTILEVEL
Expand All @@ -97,7 +97,7 @@ zwave.on('node ready', function(nodeid, nodeinfo) {
}
var values = nodes[nodeid]['classes'][comclass];
console.log('node%d: class %d', nodeid, comclass);
for (idx in values)
for (var idx in values)
console.log('node%d: %s=%s', nodeid, values[idx]['label'], values[idx]['value']);
}
});
Expand All @@ -110,7 +110,7 @@ zwave.on('scan complete', function() {
console.log('scan complete, hit ^C to finish.');
});

zwavedriverpaths = {
var zwavedriverpaths = {
"darwin" : '/dev/cu.usbmodem1411',
"linux" : '/dev/ttyUSB0',
"windows": '\\\\.\\COM3'
Expand Down