We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1693c commit ddd2c74Copy full SHA for ddd2c74
src/sensors/dct200.cc
@@ -29,7 +29,7 @@ errorlevel_t DCT200::read(float* data, uint8_t numdata) {
29
float raw = analogRead(pin);
30
if (raw < DCT200_OUT_MIN) {
31
return ERR_FATAL;
32
- })
+ }
33
data[0] = raw;
34
data[1] = ((raw - DCT200_IN_MIN) / (DCT200_IN_MAX - DCT200_IN_MIN) * (DCT200_OUT_MAX - DCT200_OUT_MIN) + DCT200_OUT_MIN);
35
// TODO: other error conditions?
0 commit comments