-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve reliablity of setting desired water temperatur
- introduce constant PureSpaIO::BUTTON_FRAMES to make PureSpaIO::TOTAL_FRAMES depended on pool model - introduce constant PureSpaIO::BUTTON::PRESS_SHORT_COUNT for changing the desired water temperature - method PureSpaIO::updateButtonState() extracted from PureSpaIO::decodeButton() - PureSpaIO::setDesiredWaterTempCelsius: calculate changeTries depeding on inital temperature delta - PureSpaIO::changeWaterTemp: set tries and toggleTempUp/Down based on PRESS_SHORT_COUNT - PureSpaIO::changeWaterTemp: clear toggleTempUp/Down when PRESS_SHORT_COUNT is reached - PureSpaIO::changeWaterTemp: wait for buzzer until delta to BUTTON::PRESS_COUNT has expired
- Loading branch information
Showing
3 changed files
with
101 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters