diff --git a/SDS011.cpp b/SDS011.cpp index ba3a114..fa67429 100644 --- a/SDS011.cpp +++ b/SDS011.cpp @@ -65,8 +65,8 @@ int SDS011::read(float *p25, float *p10) { } len++; if (len == 10 && checksum_ok == 1) { - *p10 = pm10_serial/10; - *p25 = pm25_serial/10; + *p10 = (float)pm10_serial/10.0; + *p25 = (float)pm25_serial/10.0; len = 0; checksum_ok = 0; pm10_serial = 0.0; pm25_serial = 0.0; checksum_is = 0; error = 0; } diff --git a/library.properties b/library.properties index a01b855..f6fbd15 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=SDS011 sensor Library -version=0.0.4 +version=0.0.5 author=R. Zschiegner -maintainer=R.Zshiegner +maintainer=R.Zschiegner sentence=Nova Fitness SDS011 dust sensor library paragraph=Nova Fitness SDS011 dust sensor library category=Sensors url=https://github.com/ricki-z/SDS011 -architectures=ESP8266 +architectures=esp8266,avr