Update tvocRaw and noxRaw, fix #184

This commit is contained in:
Phat Nguyen
2024-06-20 09:03:21 +07:00
parent 0e869d1c0c
commit 411beda220

View File

@ -104,6 +104,8 @@ void Sgp41::handle(void) {
} else {
uint16_t srawVoc, srawNox;
if (getRawSignal(srawVoc, srawNox)) {
tvocRaw = srawVoc;
noxRaw = srawNox;
nox = noxAlgorithm()->process(srawNox);
tvoc = vocAlgorithm()->process(srawVoc);
// AgLog("Polling SGP41 success: tvoc: %d, nox: %d", tvoc, nox);