diff --git a/firmware/atmega/Makefile b/firmware/atmega/Makefile index af789b5..d630529 100644 --- a/firmware/atmega/Makefile +++ b/firmware/atmega/Makefile @@ -11,7 +11,7 @@ RM = rm -f BUILD_DIR = build OBJ_DIR = $(BUILD_DIR)/obj -SRCS_C = source/adc.c source/moisture.c source/main.c +SRCS_C = source/adc.c source/moisture.c source/main.c source/pump.c OBJS = $(addprefix $(OBJ_DIR)/, $(notdir $(SRCS_C:.c=.o))) diff --git a/firmware/atmega/include/pump.h b/firmware/atmega/include/pump.h index 05eef60..65aef45 100644 --- a/firmware/atmega/include/pump.h +++ b/firmware/atmega/include/pump.h @@ -5,5 +5,5 @@ #include "config.h" void pumpsInit(void); -void pumpsTrigger(uint8_t digital_pins, int16_t milliseconds); +void triggerPump(uint8_t digital_pins, int16_t milliseconds); void waterPlant(void); diff --git a/firmware/atmega/source/pump.c b/firmware/atmega/source/pump.c index 2a9d01c..9cca39d 100644 --- a/firmware/atmega/source/pump.c +++ b/firmware/atmega/source/pump.c @@ -10,7 +10,7 @@ void pumpsInit(void) { (1 << PUMP_D5) | (1 << PUMP_D4) | (1 << PUMP_D3) | - 0 | 0 | 0 )); + 0 | 0 | 0 ); } void triggerPump(int8_t pump_pin, int16_t milliseconds) { @@ -21,7 +21,7 @@ void triggerPump(int8_t pump_pin, int16_t milliseconds) { // NOTE: watchout for overflows!! create a safety net. // Turn off pump - PORTD &= ~(1 << pump_pin); + //PORTD &= ~(1 << pump_pin); } void waterPlant(void) {