X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=DS2423_DS2413%2FDS2423_DS2413.c;h=a44b62b4a8d45ea93a11f412e957bea212b6e88c;hp=29800f8e8e9d45af8a390c5b10349e59489211ac;hb=45806622c08cded7d77c9c9735c433de5f7fa027;hpb=59518e632e2269fece0ce6a518e519b3a617ad16 diff --git a/DS2423_DS2413/DS2423_DS2413.c b/DS2423_DS2413/DS2423_DS2413.c index 29800f8..a44b62b 100644 --- a/DS2423_DS2413/DS2423_DS2413.c +++ b/DS2423_DS2413/DS2423_DS2413.c @@ -117,8 +117,8 @@ volatile uint8_t changefromeeprom; ISR(PCINT0_vect) { - if (((PIN_REG&PIN_CH2)==0)&&((istat&PIN_CH2)==PIN_CH2)) { counters1.c32[2]++; } - if (((PIN_REG&PIN_CH3)==0)&&((istat&PIN_CH3)==PIN_CH3)) { counters1.c32[3]++; } + if (((PIN_REG&PIN_CH2)==0)&&((istat&PIN_CH2)==PIN_CH2)) { counters1.c32[2]++; LED2_ON} + if (((PIN_REG&PIN_CH3)==0)&&((istat&PIN_CH3)==PIN_CH3)) { counters1.c32[3]++;LED2_ON } if ((PIN_REG&PIN_PIOA)==0) pin_state&=~0x1; else pin_state|=0x01; if ((PIN_REG&PIN_PIOB)==0) pin_state&=~0x4; else pin_state|=0x04; //Reset Switch on the FHEM_BOARD @@ -152,6 +152,9 @@ ISR(ANA_COMP_vect) { PORTB&=~(1<Ruecksetzen