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]);