mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-20 20:22:08 +02:00
Update tvocRaw
and noxRaw
, fix #184
This commit is contained in:
@ -104,6 +104,8 @@ void Sgp41::handle(void) {
|
|||||||
} else {
|
} else {
|
||||||
uint16_t srawVoc, srawNox;
|
uint16_t srawVoc, srawNox;
|
||||||
if (getRawSignal(srawVoc, srawNox)) {
|
if (getRawSignal(srawVoc, srawNox)) {
|
||||||
|
tvocRaw = srawVoc;
|
||||||
|
noxRaw = srawNox;
|
||||||
nox = noxAlgorithm()->process(srawNox);
|
nox = noxAlgorithm()->process(srawNox);
|
||||||
tvoc = vocAlgorithm()->process(srawVoc);
|
tvoc = vocAlgorithm()->process(srawVoc);
|
||||||
// AgLog("Polling SGP41 success: tvoc: %d, nox: %d", tvoc, nox);
|
// AgLog("Polling SGP41 success: tvoc: %d, nox: %d", tvoc, nox);
|
||||||
|
Reference in New Issue
Block a user