idk
This commit is contained in:
parent
a0b0d16c73
commit
8a68c00f01
@ -148,8 +148,8 @@ module.exports = {
|
||||
},
|
||||
handlers: {
|
||||
stateChange(change) {
|
||||
gpio.togglePin(pinMap[change.name].board).then(() => {
|
||||
console.log(`Pin ${config.states[change.name].pin} set to ${change.on}`);
|
||||
gpio.togglePin(pinMap.get(change.name).board).then(() => {
|
||||
console.log(`${change.name} toggled.`);
|
||||
}).catch(e => console.error(e));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user