Change Slave sends '0' during convert prozess on all DS18B20
[owSlave2.git] / common / OWRomFunctionsDual.s
index 59b3d40..adc571c 100644 (file)
@@ -641,3 +641,17 @@ owinit_cpconfig2:
        sts alarmflag,r_temp
        RESETZEROMARKER
        ret
+
+.global EXTERN_SLEEP
+EXTERN_SLEEP:
+       cli
+       push r_temp
+       ldi r_temp,0
+       sts mode,r_temp ;SLEEP
+       sts gcontrol,r_temp
+       sts sendflag,r_temp
+       sts bcount,r_temp
+       RESETZEROMARKER
+       pop r_temp
+       sei
+       ret
\ No newline at end of file