Changed to use the defines for only relay 0
This commit is contained in:
parent
430203880f
commit
2fe53545a5
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue