Disable TC sliders during active run in closed-loop mode
Temp-soll and heatrate-soll are only editable when closed-loop AND sud is paused or stopped; during a running sud the schedule owns those setpoints. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SH2D4LRuCnhLSzoYerAfJX
This commit is contained in:
+2
-2
@@ -477,8 +477,8 @@ function updateStatusLine() {
|
||||
// Stirrer: whenever not running. Checkbox: whenever not running.
|
||||
function updateControlsEnabled() {
|
||||
const sudRunning = RUNNING_STATES.has(sudState);
|
||||
document.getElementById('temp-soll').disabled = !closedLoop;
|
||||
document.getElementById('heatrate-soll').disabled = !closedLoop;
|
||||
document.getElementById('temp-soll').disabled = !(closedLoop && !sudRunning);
|
||||
document.getElementById('heatrate-soll').disabled = !(closedLoop && !sudRunning);
|
||||
document.getElementById('heater-power').disabled = !(!closedLoop && !sudRunning);
|
||||
document.getElementById('stirrer-speed').disabled = sudRunning;
|
||||
document.getElementById('closed-loop').disabled = sudRunning;
|
||||
|
||||
Reference in New Issue
Block a user