Vsens of DS2438
authorTobias <tm@tm3d.de>
Tue, 21 Feb 2017 20:22:49 +0000 (21:22 +0100)
committerTobias <tm@tm3d.de>
Tue, 21 Feb 2017 20:22:49 +0000 (21:22 +0100)
src/owDeviceConfig.cpp

index 653d32c..18b0126 100644 (file)
@@ -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;
                }
 }