Skip to content

Commit

Permalink
Update NeoPool webUI pH alarms (#20743)
Browse files Browse the repository at this point in the history
  • Loading branch information
curzon01 authored Feb 17, 2024
1 parent 1abaf14 commit 2068879
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions tasmota/tasmota_xsns_sensor/xsns_83_neopool.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 2068879

Please sign in to comment.