tm3d
/
owTools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
791db69
)
new Formula
author
Tobias
<tm@tm3d.de>
Thu, 1 Feb 2018 17:28:38 +0000
(18:28 +0100)
committer
Tobias
<tm@tm3d.de>
Thu, 1 Feb 2018 17:28:38 +0000
(18:28 +0100)
src/owDeviceConfig.cpp
patch
|
blob
|
history
diff --git
a/src/owDeviceConfig.cpp
b/src/owDeviceConfig.cpp
index
5322668
..
1703957
100644
(file)
--- a/
src/owDeviceConfig.cpp
+++ b/
src/owDeviceConfig.cpp
@@
-280,6
+280,10
@@
double owDeviceConfig::calculateValueFromNumber(int code, int vn, std::vector<in
case 20:return V[vn]*0.5+700;break;
case 21:return V[vn]+1280; break;
case 22:return V[vn]*10;break;
+ case 23:return V[vn]*0.025+700.0;break;
+ case 24:return V[vn]*1.1/1024.0;break;
+ case 25:return V[vn]*3.0/1024.0;break;
+ case 26:return V[vn]*5.0/1024.0;break;
default:return V[vn];
}
}