Forgot to include gpio object

This commit is contained in:
Skylar Grant 2023-11-17 11:44:41 -05:00
parent 09c73ac619
commit dc3fc976d8

12
main.js
View File

@ -56,26 +56,26 @@ function main(gpio) {
// Set the Igniter // Set the Igniter
switch (config.status.igniter) { switch (config.status.igniter) {
case 0: case 0:
fn.igniter.off(); fn.igniter.off(gpio);
break; break;
case 1: case 1:
fn.igniter.on(); fn.igniter.on(gpio);
break; break;
default: default:
fn.igniter.off(); fn.igniter.off(gpio);
break; break;
} }
// Set the Exhaust // Set the Exhaust
switch (config.status.exhaust) { switch (config.status.exhaust) {
case 0: case 0:
fn.exhaust.off(); fn.exhaust.off(gpio);
break; break;
case 1: case 1:
fn.exhaust.on(); fn.exhaust.on(gpio);
break; break;
default: default:
fn.exhaust.off(); fn.exhaust.off(gpio);
break; break;
} }