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
switch (config.status.igniter) {
case 0:
fn.igniter.off();
fn.igniter.off(gpio);
break;
case 1:
fn.igniter.on();
fn.igniter.on(gpio);
break;
default:
fn.igniter.off();
fn.igniter.off(gpio);
break;
}
// Set the Exhaust
switch (config.status.exhaust) {
case 0:
fn.exhaust.off();
fn.exhaust.off(gpio);
break;
case 1:
fn.exhaust.on();
fn.exhaust.on(gpio);
break;
default:
fn.exhaust.off();
fn.exhaust.off(gpio);
break;
}