paulvha / sps30

Sensirion SPS30 driver for ESP32, SODAQ, MEGA2560, UNO,UNO-R4 ESP8266, Particle-photon on UART OR I2C coummunication
GNU General Public License v3.0
67 stars 27 forks source link

sps30.h >> SER_STOP_MEASUREMENT #2

Closed detamend closed 5 years ago

detamend commented 5 years ago

Hello Paul - great library!!

I may have stumbled upon a error in sps30.h, line 291:

bool probe(); bool reset() {return(Instruct(SER_RESET));} bool start() {return(Instruct(SER_START_MEASUREMENT));} bool stop() {return(Instruct(SER_START_MEASUREMENT));} bool clean() {return(Instruct(SER_START_FAN_CLEANING));}

should

bool stop() {return(Instruct(SER_START_MEASUREMENT));}

not be

bool stop() {return(Instruct(SER_STOP_MEASUREMENT));}

? Seems like a copy-error :)

paulvha commented 5 years ago

Good catch.. you are right.. I will make an update Thanks Paul

paulvha commented 5 years ago

change applied.

Thanks again

regards, Paul