tm3d
/
owTools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Change git comments that make errors
[owTools.git]
/
src
/
owDeviceConfig.cpp
diff --git
a/src/owDeviceConfig.cpp
b/src/owDeviceConfig.cpp
index
1703957
..
0e4b391
100644
(file)
--- a/
src/owDeviceConfig.cpp
+++ b/
src/owDeviceConfig.cpp
@@
-284,6
+284,8
@@
double owDeviceConfig::calculateValueFromNumber(int code, int vn, std::vector<in
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;
+ case 27:return ((double)V[2]+(double)V[1]/1000.0)/8.0;break;
+ case 28:return exp(V[vn]/2560.0);break;
default:return V[vn];
}
}