Kaynağa Gözat

Fix temperature measurement

k4be 1 yıl önce
ebeveyn
işleme
99428100ff
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      soft/ds18b20.c

+ 1 - 1
soft/ds18b20.c

@@ -62,6 +62,6 @@ void gettemp(void){
 	
 	_1WireInit();
 	_1WireWriteByte(0xcc);
-	_1WireWriteByte(0x44);
+	_1WireWriteBytePR(0x44);
 	atomic_set_uint(&System.timers.owire, ms(4000));
 }