tm3d
/
owTools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
666195b
)
Vsens of DS2438
author
Tobias
<tm@tm3d.de>
Tue, 21 Feb 2017 20:22:49 +0000
(21:22 +0100)
committer
Tobias
<tm@tm3d.de>
Tue, 21 Feb 2017 20:22:49 +0000
(21:22 +0100)
src/owDeviceConfig.cpp
patch
|
blob
|
history
diff --git
a/src/owDeviceConfig.cpp
b/src/owDeviceConfig.cpp
index
653d32c
..
18b0126
100644
(file)
--- a/
src/owDeviceConfig.cpp
+++ b/
src/owDeviceConfig.cpp
@@
-242,7
+242,7
@@
double owDeviceConfig::calculateValueFromNumber(int code, int vn, std::vector<in
case 14:return (V[vn] - 32767.0) / 100.0; break;
case 15:return exp((V[vn]-32767.0)/1000.0); break;
case 16:return V[vn]/32.0; break;
- case 17:return
5120.0/V[vn]; break; //Current of DS2438 with 0.025 Ohm;
+ case 17:return
V[vn]*0.2441/1000.0; break; //Vsens DS2438
default:return 0;
}
}