some changes to global mode

This commit is contained in:
Martin Donnelly 2017-02-28 23:39:57 +00:00
parent 647c69d9b0
commit 47269c3633

View File

@ -56,8 +56,8 @@ busEmitter.on('changeState', function(mode) {
if (wemoClient !== null) { if (wemoClient !== null) {
wemoClient.setBinaryState(mode); wemoClient.setBinaryState(mode);
let newState = wemoClient.getBinaryState(); // let newState = wemoClient.getBinaryState();
busEmitter.emit('updateState', newState); // busEmitter.emit('updateState', newState);
} else { } else {
console.error('No wemoClient'); console.error('No wemoClient');
} }