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

Fix void Sensors::CO2scd30Read(). Add fast return if not registered #197 #198

Closed melkati closed 7 months ago

melkati commented 7 months ago

Description

CO2scd30Read() was taking around 1 second to return, even if the SCD30 sensor wasn't registered.

Related Issues

Issue with Sensors::CO2scd30Read() #197

Tests

Tested with SCD30 and SCD41 on CO2 Gadget. Looks to work fine with both.