X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=DS2423_DS2423%2FDS2423_DS2423.c;h=916685069740fc2bb224f1fce2753ebdcbcefea6;hp=1dbd39517045721a08b50e8910e9fd554a102e75;hb=refs%2Fheads%2Fmaster;hpb=6467d8138460abffd9ddabc7b0a9f00c764af19c diff --git a/DS2423_DS2423/DS2423_DS2423.c b/DS2423_DS2423/DS2423_DS2423.c index 1dbd395..9166850 100644 --- a/DS2423_DS2423/DS2423_DS2423.c +++ b/DS2423_DS2423/DS2423_DS2423.c @@ -43,7 +43,10 @@ extern void OWINIT(void); extern void EXTERN_SLEEP(void); + //#define FHEM_PLATINE +//#define JOE_M +#define W1DAQ volatile uint8_t owid1[8]={0x1D, 0x40, 0xDA, 0x84, 0x00, 0x00, 0x05, 0xBD};/**/ volatile uint8_t owid2[8]={0x1D, 0x41, 0xDA, 0x84, 0x00, 0x00, 0x05, 0x8A};/**/ @@ -102,7 +105,9 @@ volatile uint8_t changefromeeprom; //LEDS #define LPIN_CH2 (1< minus of Comperator falls down -> output of Comperator rises - #ifdef FHEM_PLATINE +#ifdef FHEM_PLATINE //Switch std AIN1 to A0 ADCSRA&=~(1<Ruecksetzen if ((counters1.c32[2]!=0)||(counters1.c32[3]!=0)||(counters2.c32[2]!=0)||(counters2.c32[3]!=0)) { counters1.c32[0]++; counters2.c32[0]++; for (uint8_t i=2;i<4;i++) { @@ -286,9 +310,20 @@ int main(void){ } } #endif + if (((TIMSK0 & (1<