tmp add debug log for state changes

This commit is contained in:
Skylar Grant 2024-11-30 18:14:07 -05:00
parent de2e9e00ec
commit 5fadfd2000

View File

@ -58,6 +58,7 @@ setInterval(fn.routines.cycleAuger, config.augerTotalCycleTime);
/***************************************************************************************/
process.comlink.on('stateChange', (oldState, state) => {
fn.log(`ComLink: State change detected.`, 'INFO');
fn.log(`ComLink: Old State: ${JSON.stringify(oldState.auger)}\nNew State: ${JSON.stringify(state.auger)}`, 'DEBUG');
fn.handlers.stateChange(oldState, state);
});