same .S files for same device in common folder
[owSlave2.git] / DS18B20_BMP280_DS2438_SHT / DS18B20_DS2438.c
index 4aec172..5b98b1c 100644 (file)
@@ -1,4 +1,3 @@
-
 // Copyright (c) 2015, Tobias Mueller tm(at)tm3d.de
 // All rights reserved.
 //
@@ -44,7 +43,7 @@
 
 
 extern void OWINIT();
-
+extern void EXTERN_SLEEP();
 
 
 uint8_t owid1[8]={0x28, 0xA3, 0xD9, 0x84, 0x00, 0x16, 0x05, 0x18};/**/
@@ -207,7 +206,7 @@ int main(void){
                                //pack.temp++;
                                alarmflag=af;
                                sei();
-                               gcontrol=0;
+                               EXTERN_SLEEP(); 
                }
                if ((gcontrol==2)||(gcontrol==3)) {
                        gcontrol=0;