ericklein/air_quality

batteryRead doesn't set hardwareData.battery to 0 if hardware not detected

Closed this issue · 1 comments

batteryRead doesn't set hardwareData.battery to 0 if hardware not detected

.batteryVoltage is set to 0 early in setup(). If lc.read() fails, it will still be at 0. Same holds true with the software detection routine.