From c7ff04faea392778a8456bdf4914853dbee13d86 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 8 Dec 2022 12:47:50 -0500 Subject: [PATCH] Remove temperature pin init --- functions.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/functions.js b/functions.js index 1dd6f7e..d11ce84 100644 --- a/functions.js +++ b/functions.js @@ -355,18 +355,19 @@ const functions = { gpio.setup(pofPin, gpio.DIR_IN, (err) => { if (err) reject(err); if (config.debugMode) console.log('== Proof of Fire pin initialized.'); - // Init the Temp Sensor pin - gpio.setup(tempPin, gpio.DIR_IN, (err) => { + // Init the Vacuum Switch pin + gpio.setup(vacuumPin, gpio.DIR_IN, (err) => { if (err) reject(err); - if (config.debugMode) console.log('== Temperature pin initialized.'); - // Init the Vacuum Switch pin - gpio.setup(vacuumPin, gpio.DIR_IN, (err) => { - if (err) reject(err); - if (config.debugMode) console.log('== Vacuum Switch pin initialized.'); - // Resolve the promise now that all pins have been initialized - resolve('== GPIO Initialized.'); - }); + if (config.debugMode) console.log('== Vacuum Switch pin initialized.'); + // Resolve the promise now that all pins have been initialized + resolve('== GPIO Initialized.'); }); + // Init the Temp Sensor pin + // gpio.setup(tempPin, gpio.DIR_IN, (err) => { + // if (err) reject(err); + // if (config.debugMode) console.log('== Temperature pin initialized.'); + + // }); }); }); });