Skip to content

Commit

Permalink
fix order on cfc dialog, state should be last
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Dec 20, 2023
1 parent f666c21 commit 80771ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oresat_cfc/templates/cfc.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ <h4>TEC (Thermoelectric Cooler) Controller</h4>
document.getElementById("newTecStatus").checked = tecStatusObj.value;
document.getElementById("newSetpoint").value = tecSetpointObj.value;
} else if (dialog.returnValue === "submit") {
writeValue("camera", "status", document.getElementById("newState").selectedIndex + 1);
writeValue("camera", "capture_delay", parseInt(document.getElementById("newCapDelay").value));
writeValue("camera", "number_to_capture", parseInt(document.getElementById("newCapAmount").value));
writeValue("camera", "save_captures", document.getElementById("newCapSave").checked);
Expand All @@ -196,6 +195,7 @@ <h4>TEC (Thermoelectric Cooler) Controller</h4>
}
writeValue("tec", "status", document.getElementById("newTecStatus").checked);
writeValue("tec", "pid_setpoint", document.getElementById("newSetpoint").value);
writeValue("camera", "status", document.getElementById("newState").selectedIndex + 1);
}
}

Expand Down

0 comments on commit 80771ad

Please sign in to comment.