Skip to content

Commit

Permalink
wrong int to float
Browse files Browse the repository at this point in the history
  • Loading branch information
ricki-z committed Mar 27, 2017
1 parent 9c0bb9c commit 759e11a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SDS011.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name=SDS011 sensor Library
version=0.0.4
version=0.0.5
author=R. Zschiegner
maintainer=R.Zshiegner <[email protected]>
maintainer=R.Zschiegner <[email protected]>
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

0 comments on commit 759e11a

Please sign in to comment.