This commit is contained in:
Skylar Grant 2024-08-15 10:55:56 -04:00
parent 6cf9d622cb
commit a49e0f61b2
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const config = {
}
};
function refreshState(doc, state) {
export function refreshState(doc, state) {
const igniterStatus = doc.getElementById("igniter-status");
const exhaustStatus = doc.getElementById("exhaust-status");
const augerStatus = doc.getElementById("auger-status");
@ -43,7 +43,7 @@ function refreshState(doc, state) {
console.log('State refreshed.');
}
function togglePower(element) {
export function togglePower(element) {
psState[element].power(comms);
refreshState(window.document, psState);
}