From 2fe53545a57afff47c403f047e67b2f704b92c02 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Tue, 3 Sep 2024 16:53:34 -0700 Subject: [PATCH] Changed to use the defines for only relay 0 --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 8680fcf..2caf641 100644 --- a/src/main.c +++ b/src/main.c @@ -46,8 +46,8 @@ void setup_relays(Relay *arr) { arr[0].input_pin = RELAY0_INPIN; // Set the directions for the input and output pins/ports - PORTA.DDR |= RELAY0_ENPIN; - PORTA.DDR &= ~RELAY1_ENPIN; + PORTA.DIR |= RELAY0_ENPIN; + PORTA.DIR &= ~RELAY0_INPIN; for (int i = 0; i < N_RELAYS; i++) { Relay_MeasureMakeTime(&arr[0]);