From 411beda220d00edadf0d1134154f2f5f71e7034c Mon Sep 17 00:00:00 2001 From: Phat Nguyen Date: Thu, 20 Jun 2024 09:03:21 +0700 Subject: [PATCH] Update `tvocRaw` and `noxRaw`, fix #184 --- src/Sgp41/Sgp41.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Sgp41/Sgp41.cpp b/src/Sgp41/Sgp41.cpp index b9801f5..502dcb9 100644 --- a/src/Sgp41/Sgp41.cpp +++ b/src/Sgp41/Sgp41.cpp @@ -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);