tm3d
/
owTools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
454e68c
)
New Formula DS2438 Pressure
author
Tobias
<tm@tm3d.de>
Tue, 4 Jul 2017 09:40:37 +0000
(11:40 +0200)
committer
Tobias
<tm@tm3d.de>
Tue, 4 Jul 2017 09:40:37 +0000
(11:40 +0200)
src/owDeviceConfig.cpp
patch
|
blob
|
history
diff --git
a/src/owDeviceConfig.cpp
b/src/owDeviceConfig.cpp
index
963b3a0
..
00bb4b4
100644
(file)
--- a/
src/owDeviceConfig.cpp
+++ b/
src/owDeviceConfig.cpp
@@
-245,6
+245,7
@@
double owDeviceConfig::calculateValueFromNumber(int code, int vn, std::vector<in
case 17:return V[vn]*0.2441/1000.0; break; //Vsens DS2438
case 18:return V[vn]/8.0;break;
case 19:return V[vn]/500.0*14.0;break; //Test
+ case 20:return V[vn]*0.5+700;break;
default:return 0;
}
}