mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
formatting
This commit is contained in:
@@ -455,10 +455,14 @@ const Sensors = () => {
|
||||
as.g !== GPIO_26) ||
|
||||
as.t === AnalogType.DIGITAL_IN ||
|
||||
as.t === AnalogType.PULSE ? (
|
||||
<Cell stiff>{as.g !== 99 ? as.v ? LL.ON() : LL.OFF() : ''}</Cell>
|
||||
<Cell stiff>
|
||||
{as.g !== 99 ? (as.v ? LL.ON() : LL.OFF()) : ''}
|
||||
</Cell>
|
||||
) : (
|
||||
<Cell stiff>
|
||||
{as.t !== AnalogType.NOTUSED && as.g !== 99 ? formatValue(as.v, as.u) : ''}
|
||||
{as.t !== AnalogType.NOTUSED && as.g !== 99
|
||||
? formatValue(as.v, as.u)
|
||||
: ''}
|
||||
</Cell>
|
||||
)}
|
||||
</Row>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user