From dc3fc976d8f07662676bc0e21f9ca25b9e47b240 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 17 Nov 2023 11:44:41 -0500 Subject: [PATCH] Forgot to include gpio object --- main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; }