Add missing variables

This commit is contained in:
Skylar Grant 2022-12-03 19:59:12 -05:00
parent a062831376
commit 216daf1e38

View File

@ -45,11 +45,11 @@ const functions = {
},
// Cycles the auger using the two functions above this one (functions.auger.on() and functions.auger.off())
// Sleeps in between cycles using functions.sleep()
cycle() {
cycle(gpio) {
return new Promise((resolve) => {
this.on().then(() => {
this.on(gpio).then(() => {
functions.sleep(process.env.ONTIME).then(() => {
this.off().then(() => {
this.off(gpio).then(() => {
functions.sleep(process.env.OFFTIME).then(() => {
resolve("Cycle complete.");
});