提交 198afe0b 编写于 作者: T Tobias Brandt 提交者: Krzysztof Wicher

fix scaling of raw values from ADS1115 (#890)

上级 ba3ce338
......@@ -159,14 +159,7 @@ namespace Iot.Device.Ads1115
break;
}
if ((byte)_inputMultiplexer <= 0x03)
{
resolution = 65535.0;
}
else
{
resolution = 32768.0;
}
resolution = 32768.0;
return val * (voltage / resolution);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册