Manages the 1-wire bus

Dependents:   oldheating heating

Revision:
8:ceafef18cbf7
Parent:
2:79cad6a51fd0
Child:
9:6f663ad53c7e
--- a/web/web-1wire-class.js	Wed Jun 19 15:37:23 2019 +0000
+++ b/web/web-1wire-class.js	Wed Jun 10 10:02:55 2020 +0000
@@ -3,7 +3,7 @@
 
 class OneWire
 {
-    static DS18B20ToString(text)
+    static parseDS18B20(text)
     {
         switch (text)
         {
@@ -27,6 +27,6 @@
         }
         let value = parseInt(text, 16) / 16.0;
         if (isNegative) value = -value;
-        return value.toFixed(1);
+        return value;
     }
 }
\ No newline at end of file