even more logging around pump actions

This commit is contained in:
Morgan 'ARR\!' Allen 2021-09-22 18:55:49 -07:00
parent 7be60e623a
commit e2f7b6a391

View file

@ -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);
}
}