Remove temperature pin init
This commit is contained in:
parent
b2a04b35af
commit
c7ff04faea
11
functions.js
11
functions.js
@ -355,10 +355,6 @@ 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) => {
|
||||
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);
|
||||
@ -366,7 +362,12 @@ const functions = {
|
||||
// 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.');
|
||||
|
||||
// });
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user