Skip to content

Commit c3bebf7

Browse files
committed
Fixes UI HV on discrepancy
Disconnect always turns HV off, but button remained on in UI.
1 parent 0f6aa0e commit c3bebf7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

control/static/js/odin_server.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ function resetButtonClicked() {
121121
}
122122

123123
function disconnectButtonClicked() {
124-
disconnect_hardware();
124+
// Disconnect automatically turns HV off, signal "off" to Software
125+
hvOffButtonClicked();
126+
setTimeout(function () {
127+
disconnect_hardware();
128+
}, 400);
125129
}
126130

127131
function saveOdinClicked() {

0 commit comments

Comments
 (0)