Fix dropdown

This commit is contained in:
Skylar Grant 2023-01-06 18:47:38 -05:00
parent 4daec6513d
commit 1532d6e3d3
2 changed files with 17 additions and 2 deletions

View File

@ -17,8 +17,8 @@
"igniterOff": 0 "igniterOff": 0
}, },
"intervals": { "intervals": {
"augerOn": 500, "augerOn": 600,
"augerOff": 1500, "augerOff": 1400,
"pause": 3000, "pause": 3000,
"igniterStart": 5000, "igniterStart": 5000,
"blowerStop": 5000 "blowerStop": 5000

View File

@ -50,6 +50,21 @@ function refreshData() {
augerOn.innerHTML = config.intervals.augerOn; augerOn.innerHTML = config.intervals.augerOn;
augerOff.innerHTML = config.intervals.augerOff; augerOff.innerHTML = config.intervals.augerOff;
pauseInt.innerHTML = config.intervals.pause; pauseInt.innerHTML = config.intervals.pause;
switch (config.intervals.augerOn) {
case 600:
feedRate.selectedIndex = 0;
break;
case 800:
feedRate.selectedIndex = 1;
break;
case 1000:
feedRate.selectedIndex = 2;
break;
default:
feedRate.selectedIndex = 0;
break;
}
feedRate.value = config.intervals.augerOn; feedRate.value = config.intervals.augerOn;
// Run this again after 2 seconds // Run this again after 2 seconds