Export
This commit is contained in:
parent
6cf9d622cb
commit
a49e0f61b2
@ -23,7 +23,7 @@ const config = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function refreshState(doc, state) {
|
export function refreshState(doc, state) {
|
||||||
const igniterStatus = doc.getElementById("igniter-status");
|
const igniterStatus = doc.getElementById("igniter-status");
|
||||||
const exhaustStatus = doc.getElementById("exhaust-status");
|
const exhaustStatus = doc.getElementById("exhaust-status");
|
||||||
const augerStatus = doc.getElementById("auger-status");
|
const augerStatus = doc.getElementById("auger-status");
|
||||||
@ -43,7 +43,7 @@ function refreshState(doc, state) {
|
|||||||
console.log('State refreshed.');
|
console.log('State refreshed.');
|
||||||
}
|
}
|
||||||
|
|
||||||
function togglePower(element) {
|
export function togglePower(element) {
|
||||||
psState[element].power(comms);
|
psState[element].power(comms);
|
||||||
refreshState(window.document, psState);
|
refreshState(window.document, psState);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user