X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=DS2423_komische%20platine%2FDS2423.c;fp=DS2423_komische%20platine%2FDS2423.c;h=11f51db643cc328c778af1083fdc48711512ccfd;hp=13b33dc57c458edd8522a1dc2b496f83c096ef50;hb=485bc58764a5b2a1296dee25aadb42316e8defe0;hpb=a07a7e7b05471927bf3046ee265792231711f8a4 diff --git a/DS2423_komische platine/DS2423.c b/DS2423_komische platine/DS2423.c index 13b33dc..11f51db 100644 --- a/DS2423_komische platine/DS2423.c +++ b/DS2423_komische platine/DS2423.c @@ -54,7 +54,7 @@ extern uint8_t gcontrol; extern uint8_t reset_indicator; -volatile uint8_t wdcounter; + @@ -80,7 +80,7 @@ typedef union { volatile counters_t counters; volatile uint8_t istat; - +volatile uint8_t changefromeeprom; #define PCINT_VECTOR PCINT0_vect #define PIN_REG PINA #define PIN_DDR DDRA @@ -111,8 +111,8 @@ ISR(PCINT0_vect) { if (((PIN_REG&PIN_CH1)==0)&&((istat&PIN_CH1)==PIN_CH1)) { counters.c32[1]++; LPORT_CH2|=LPIN_CH2;} if (((PIN_REG&PIN_CH2)==0)&&((istat&PIN_CH2)==PIN_CH2)) { counters.c32[2]++; LPORT_CH2|=LPIN_CH2;} if (((PIN_REG&PIN_CH3)==0)&&((istat&PIN_CH3)==PIN_CH3)) { counters.c32[3]++; LPORT_CH2|=LPIN_CH2;} - - if (((PORT_EE&PIN_EE)==0)&&((istat&PIN_EE)==PIN_EE)) { + changefromeeprom=1; +/* if (((PORT_EE&PIN_EE)==0)&&((istat&PIN_EE)==PIN_EE)) { _delay_ms(50); if (((PORT_EE&PIN_EE)==0)) { @@ -135,7 +135,7 @@ ISR(PCINT0_vect) { } GIFR|=(1<