Changed to use the defines for only relay 0

This commit is contained in:
jakeg00dwin 2024-09-03 16:53:34 -07:00
parent 430203880f
commit 2fe53545a5
1 changed files with 2 additions and 2 deletions

View File

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