Better logging
This commit is contained in:
parent
ee70f34179
commit
e5ba2e52e5
@ -7,14 +7,17 @@ const { State } = require('../custom_modules/HestiaClasses.js');
|
|||||||
// Variables
|
// Variables
|
||||||
process.pinMap = new Map();
|
process.pinMap = new Map();
|
||||||
|
|
||||||
|
fn.log('Initializing pinMap');
|
||||||
for (const pin of config.pins) {
|
for (const pin of config.pins) {
|
||||||
process.pinMap.set(pin.key, pin);
|
process.pinMap.set(pin.key, pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize state
|
// Initialize state
|
||||||
|
fn.log('Initializing state');
|
||||||
process.psState = new State(config);
|
process.psState = new State(config);
|
||||||
|
|
||||||
// Auger Loop
|
// Auger Loop
|
||||||
|
fn.log('Starting auger loop');
|
||||||
setInterval(fn.routines.cycleAuger, 2000);
|
setInterval(fn.routines.cycleAuger, 2000);
|
||||||
|
|
||||||
fn.log('Setting exhaust to low to keep NC relay closed and fan running');
|
fn.log('Setting exhaust to low to keep NC relay closed and fan running');
|
||||||
|
Loading…
Reference in New Issue
Block a user