Browse Source

Fix temperature measurement

k4be 1 year ago
parent
commit
99428100ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      soft/ds18b20.c

+ 1 - 1
soft/ds18b20.c

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