ElektorLabs / 191148-RemakeWeatherStation

RemakeWeatherStation
12 stars 4 forks source link

UART_PM_Sensor does not return HPM115S0 values #19

Closed chrpaq closed 3 years ago

chrpaq commented 3 years ago

The GetParticleCount does not return the counts comming from HPM115S0 sensor. float values p25 and p10 are assigned the count from SDS011 but when reading values from HPM115S0 are assigned to integer variables up25 and up10. I have added following code after line: reading_ok=HPMA115S0device->ReadMesurement(&up25, &up10); if (reading_ok){ p25 = up25; p10 = up10; } With this correction I now have the values back from the HPM sensor.

lab-mathias-claussen commented 3 years ago

Fixed by Pullrequest #18