even more logging around pump actions
This commit is contained in:
parent
7be60e623a
commit
e2f7b6a391
1 changed files with 5 additions and 0 deletions
|
@ -53,10 +53,14 @@ uint8_t pumps_get_state(uint8_t idx) {
|
|||
}
|
||||
|
||||
uint8_t pump_enable(int8_t i) {
|
||||
ESP_LOGI(TAG, "pump: %d enabled", i);
|
||||
|
||||
return gpio_set_level(pump_gpio_map[i], 0);
|
||||
}
|
||||
|
||||
uint8_t pump_disable(int8_t i) {
|
||||
ESP_LOGI(TAG, "pump: %d disabled", i);
|
||||
|
||||
return gpio_set_level(pump_gpio_map[i], 0);
|
||||
}
|
||||
|
||||
|
@ -72,6 +76,7 @@ void pump_timer_done(TimerHandle_t timer) {
|
|||
void pumps_stop() {
|
||||
for(uint8_t i = 0; i < PUMPS; i++) {
|
||||
if(pump_timers[i] != NULL)
|
||||
pump_disable(i);
|
||||
xTimerStop(pump_timers[i], 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue