Fix dropdown
This commit is contained in:
parent
4daec6513d
commit
1532d6e3d3
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user