X-Git-Url: https://git.smho.de/gw/?p=owPython.git;a=blobdiff_plain;f=owlib.py;h=dff9eb5e4100fceeb8acd536efb057b4f382fc84;hp=11d9deb15ae0e00f42e4356e6800577287952678;hb=6757c4bbdd08e635288c16b8a194540c90906ddd;hpb=c98e838e90af67d344de68b7ac073fc71d0dc56d diff --git a/owlib.py b/owlib.py index 11d9deb..dff9eb5 100644 --- a/owlib.py +++ b/owlib.py @@ -80,6 +80,8 @@ def calcValue(code,vn,V): return exp((V[vn]-32767.0)/1000.0); if code==16: return V[vn]/32.0; + if code==17: + return V[vn]*0.2441/1000; return 0; @@ -257,7 +259,7 @@ class owDS18B20(owDevice): class owDS2438(owDevice): def setdefaultConfig(self): - self.config=[1,6, 6,8, 4,7, 7,17, 0,2,3,12,4,0,0,0,0,0,0,0,0,0,0,0] + self.config=[1,6, 6,8, 4,7, 6,17, 0,2,3,12,4,0,0,0,0,0,0,0,0,0,0,0] def readScratchpad(self,page,recall): if (recall):