succd: Hint at invalid process values
When the succbone connection breaks, add hints to the UI that values may no longer be correct.
This commit is contained in:
parent
637f8748a8
commit
d5c42a4899
|
@ -410,6 +410,15 @@ window.addEventListener("load", (_) => {
|
||||||
socket.addEventListener("close", (event) => {
|
socket.addEventListener("close", (event) => {
|
||||||
status.innerHTML = "Offline";
|
status.innerHTML = "Offline";
|
||||||
status.style = colors.highlightFault;
|
status.style = colors.highlightFault;
|
||||||
|
|
||||||
|
// Indicate all process values as unknown
|
||||||
|
|
||||||
|
[failsafe, highpressure, rp, dp, trough, thigh, volts, mbar].forEach((el) => {
|
||||||
|
if (!el.innerHTML.includes("??")) {
|
||||||
|
el.innerHTML += "??";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (connected) {
|
if (connected) {
|
||||||
console.log("Socket dead, reconnecting...");
|
console.log("Socket dead, reconnecting...");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue