From c2226d1c6fa4433a426c6d4ac1c0354d7981dad2 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 3 Dec 2022 20:25:18 -0500 Subject: [PATCH] Missing passoff of variable --- functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.js b/functions.js index d4bfbc0..d82b141 100644 --- a/functions.js +++ b/functions.js @@ -29,7 +29,7 @@ const functions = { }, // Turns the auger off (pin 7 low) - off() { + off(gpio) { return new Promise((resolve) => { if (process.env.ONPI == 'true') { gpio.write(7, false, function(err) {