Skip to content

Commit

Permalink
Increase alarm input debounce time.
Browse files Browse the repository at this point in the history
Occasionally seeing High Float Alarms around the time the pump turns off.
  • Loading branch information
mikelawrence committed Jul 5, 2018
1 parent e325695 commit 0cf7c62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ The rest of the sketch settings are C defines in the [WiFi_Septic_Controller.h](
******************************************************************/
// Name of this board, each board should be unique
// Used as MQTT Client ID, HASS Name, and OTA Name
// Used as MQTT Client ID, HASS Name, and OTA Name
#define BOARD_NAME "Septic"
// input debounce time in milliseconds
#define DEBOUNCE_TIME 100
Expand Down
2 changes: 1 addition & 1 deletion code/WiFi_Septic_Controller/WiFi_Septic_Controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#define PUMP_TOGGLE_DEBOUNCE_TIME 500
// pump toggle switch input debounce time in milliseconds
// Should be larger than DEBOUNCE_TIME
#define ALARM_DEBOUNCE_TIME 500
#define ALARM_DEBOUNCE_TIME 1000
// pump state machine deadband time in milliseconds
#define PUMP_DEADBAND_TIME 2000
// alarm state machine deadband time in milliseconds
Expand Down

0 comments on commit 0cf7c62

Please sign in to comment.