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 ce90bae commit 6febdd7Copy full SHA for 6febdd7
src/hackair.cpp
@@ -106,8 +106,8 @@ void hackAIR::refresh(hackAirData &data) {
106
data.error = 0;
107
108
// Set data
109
- data.pm25 = ((_buff[3] << 8) + _buff[2]);
110
- data.pm10 = ((_buff[5] << 8) + _buff[4]);
+ data.pm25 = ((_buff[3] << 8) + _buff[2]) / 10.0f;
+ data.pm10 = ((_buff[5] << 8) + _buff[4]) / 10.0f;
111
112
return;
113
} else {
0 commit comments