diff --git a/succbone/succd/index.html b/succbone/succd/index.html
index 7ed97c4..4d758be 100644
--- a/succbone/succd/index.html
+++ b/succbone/succd/index.html
@@ -290,15 +290,13 @@ window.addEventListener("load", (_) => {
const data = JSON.parse(event.data);
volts.innerHTML = data.Volts;
mbar.innerHTML = data.Mbar;
- failsafe.innerHTML = data.failsafe ? "ON" : "OFF";
- if data.failsafe {
- failsafe.innerHTML = "ON"";
+ failsafe.innerHTML = data.Failsafe ? "ON" : "OFF";
+ if (data.Failsafe) {
failsafe.style = "background-color: #f06060";
} else {
- failsafe.innerHTML = "OFF";
failsafe.style = "background-color: #60f060";
}
- if data.highpressure {
+ if (data.HighPressure) {
highpressure.innerHTML = "ON";
highpressure.style = "background-color: #f06060";
} else {