Change Slave sends '0' during convert prozess on all DS18B20
[owSlave2.git] / DS18B20_BMP280_DS2438_SHT / DS18B20_DS2438.c
index 4aec172..8d995eb 100644 (file)
@@ -44,7 +44,7 @@
 
 
 extern void OWINIT();
-
+extern void EXTERN_SLEEP();
 
 
 uint8_t owid1[8]={0x28, 0xA3, 0xD9, 0x84, 0x00, 0x16, 0x05, 0x18};/**/
@@ -207,7 +207,7 @@ int main(void){
                                //pack.temp++;
                                alarmflag=af;
                                sei();
-                               gcontrol=0;
+                               EXTERN_SLEEP(); 
                }
                if ((gcontrol==2)||(gcontrol==3)) {
                        gcontrol=0;