Turn auger on with igniter

This commit is contained in:
Skylar Grant 2022-12-08 12:53:04 -05:00
parent 0309ffa615
commit 8d947e5ffa

View File

@ -182,6 +182,7 @@ const functions = {
}, },
ignite(gpio) { ignite(gpio) {
config.status.igniter = 1; config.status.igniter = 1;
config.status.auger = 1;
config.igniterOnTime = Date.now(); config.igniterOnTime = Date.now();
config.igniterOffTime = config.igniterOnTime + config.igniterWaitTime; // 7 Minutes, 420,000ms config.igniterOffTime = config.igniterOnTime + config.igniterWaitTime; // 7 Minutes, 420,000ms
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {