diff --git a/main.js b/main.js index 8513bd2..3a53bcf 100644 --- a/main.js +++ b/main.js @@ -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; }