kike-canaries / canairio_sensorlib

Particle sensor manager for multiple sensors: Honeywell, Plantower, Panasonic, Sensirion, etc. This is sensors layer of CanAirIO project too.
https://canair.io/docs/sensorlib.html
GNU General Public License v3.0
37 stars 12 forks source link

Issue with Sensors::CO2scd30Read() #197

Closed melkati closed 6 months ago

melkati commented 6 months ago

Overview

Is's taking about 1 second to return, even if the SCD30 sensor isn't registered.

Details

Main CO2 Gadget program loop was stopping for 1 sec at each iteration so I looked for the right cause. It was a little difficult to find the bug as I was using an SCD41 at that moment.

melkati commented 6 months ago

I have already a fix implemented at https://github.com/melkati/canairio_sensorlib/tree/Fix-CO2scd30Read

Testing it right now on CO2 Gadget.

I'll send a PR later with the fix, if everything looks fine.