浏览代码

Fix temperature measurement

k4be 1 年之前
父节点
当前提交
99428100ff
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));
 }