diff --git a/firmware/main.c b/firmware/main.c index 38ea013..e1d4df8 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -30,7 +30,7 @@ #include "main.h" // main definitions /* variables */ -volatile uint8_t stateD; // the state of port D +volatile uint8_t state_portD; // the state of port D /* switch off LED */ void led_off(void) @@ -51,30 +51,30 @@ void led_toggle(void) } /* scale on interrupt - PCI2 Interrupt Vector for PCINT[23:16]/PORTD -*/ + * PCI2 Interrupt Vector for PCINT[23:16]/PORTD + */ ISR(PCINT2_vect) { - if ((stateD&(1<