This commit is contained in:
Skylar Grant 2024-08-15 10:55:56 -04:00
parent 6cf9d622cb
commit a49e0f61b2

View File

@ -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);
} }