mirror of https://github.com/arendst/Tasmota.git
Update NeoPool webUI pH alarms (#20743)
This commit is contained in:
parent
1abaf146b5
commit
2068879c23
|
@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
|
|||
- Berry class `int64` made immutable (#20727)
|
||||
- LVGL make lv_touch_3_buttons more responsive (#20728)
|
||||
- HASPmota fix and improve demo with pixel-perfect fonts (#20734)
|
||||
- NeoPool webUI pH alarms (4 & 5) completed
|
||||
|
||||
### Fixed
|
||||
- ESP32 PWM activity on unconfigured PWM GPIOs (#20732)
|
||||
|
|
|
@ -834,7 +834,9 @@ const char kNeoPoolpHAlarms[] PROGMEM =
|
|||
D_NEOPOOL_SETPOINT_OK "|"
|
||||
D_NEOPOOL_PH_HIGH "|"
|
||||
D_NEOPOOL_PH_LOW "|"
|
||||
D_NEOPOOL_PUMP_TIME_EXCEEDED
|
||||
D_NEOPOOL_PUMP_TIME_EXCEEDED "|"
|
||||
D_NEOPOOL_PH_HIGH "|"
|
||||
D_NEOPOOL_PH_LOW
|
||||
;
|
||||
|
||||
#define NEOPOOL_FMT_PH "%*_f"
|
||||
|
@ -2043,7 +2045,7 @@ void NeoPoolShow(bool json)
|
|||
(((uint16_t)(fvalue*10) > (uint16_t)(fphmax*10)) ? HTTP_SNS_NEOPOOL_STATUS_ACTIVE : HTTP_SNS_NEOPOOL_STATUS_INACTIVE), stemp);
|
||||
WSContentSend_PD(PSTR(" "));
|
||||
// S2
|
||||
if ((NeoPoolGetData(MBF_PH_STATUS) & MBMSK_PH_STATUS_ALARM) >=1 && (NeoPoolGetData(MBF_PH_STATUS) & MBMSK_PH_STATUS_ALARM) <= 3) {
|
||||
if ((NeoPoolGetData(MBF_PH_STATUS) & MBMSK_PH_STATUS_ALARM) > 0) {
|
||||
GetTextIndexed(stemp, sizeof(stemp), NeoPoolGetData(MBF_PH_STATUS) & MBMSK_PH_STATUS_ALARM, kNeoPoolpHAlarms);
|
||||
WSContentSend_PD(HTTP_SNS_NEOPOOL_STATUS, bg_color, HTTP_SNS_NEOPOOL_STATUS_ACTIVE, stemp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue