diff --git a/interface/src/app/main/Sensors.tsx b/interface/src/app/main/Sensors.tsx index 61f83d263..f1ba46979 100644 --- a/interface/src/app/main/Sensors.tsx +++ b/interface/src/app/main/Sensors.tsx @@ -455,10 +455,14 @@ const Sensors = () => { as.g !== GPIO_26) || as.t === AnalogType.DIGITAL_IN || as.t === AnalogType.PULSE ? ( - {as.g !== 99 ? as.v ? LL.ON() : LL.OFF() : ''} + + {as.g !== 99 ? (as.v ? LL.ON() : LL.OFF()) : ''} + ) : ( - {as.t !== AnalogType.NOTUSED && as.g !== 99 ? formatValue(as.v, as.u) : ''} + {as.t !== AnalogType.NOTUSED && as.g !== 99 + ? formatValue(as.v, as.u) + : ''} )} diff --git a/src/core/system.cpp b/src/core/system.cpp index f30c53e83..f24a3f9e1 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -414,7 +414,7 @@ void System::reload_settings() { dallas_gpio_ = 0; EMSESP::webSettingsService.read([&](WebSettings & settings) { version_ = settings.version; - // first check gpios, prioriy to rx and tx + // first check gpios, priority to rx and tx rx_gpio_ = is_valid_gpio(settings.rx_gpio) ? settings.rx_gpio : 0; tx_gpio_ = is_valid_gpio(settings.tx_gpio) ? settings.tx_gpio : 0; pbutton_gpio_ = is_valid_gpio(settings.pbutton_gpio) ? settings.pbutton_gpio : 0;