Change Slave sends '0' during convert prozess on all DS18B20
[owSlave2.git] / common / OWRomFunctions.s
index 0b1488d..9887940 100644 (file)
@@ -471,3 +471,18 @@ owinit_botest_end:
        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