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