Remove temperature pin init

This commit is contained in:
Skylar Grant 2022-12-08 12:47:50 -05:00
parent b2a04b35af
commit c7ff04faea
1 changed files with 11 additions and 10 deletions

View File

@ -355,18 +355,19 @@ const functions = {
gpio.setup(pofPin, gpio.DIR_IN, (err) => { gpio.setup(pofPin, gpio.DIR_IN, (err) => {
if (err) reject(err); if (err) reject(err);
if (config.debugMode) console.log('== Proof of Fire pin initialized.'); if (config.debugMode) console.log('== Proof of Fire pin initialized.');
// Init the Temp Sensor pin // Init the Vacuum Switch pin
gpio.setup(tempPin, gpio.DIR_IN, (err) => { gpio.setup(vacuumPin, gpio.DIR_IN, (err) => {
if (err) reject(err); if (err) reject(err);
if (config.debugMode) console.log('== Temperature pin initialized.'); if (config.debugMode) console.log('== Vacuum Switch pin initialized.');
// Init the Vacuum Switch pin // Resolve the promise now that all pins have been initialized
gpio.setup(vacuumPin, gpio.DIR_IN, (err) => { resolve('== GPIO Initialized.');
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.');
});
}); });
// Init the Temp Sensor pin
// gpio.setup(tempPin, gpio.DIR_IN, (err) => {
// if (err) reject(err);
// if (config.debugMode) console.log('== Temperature pin initialized.');
// });
}); });
}); });
}); });