From 1b4d89e1a1f2879c1d481b065e8db381b10e9784 Mon Sep 17 00:00:00 2001 From: samuelbles07 Date: Mon, 18 Nov 2024 19:53:28 +0700 Subject: [PATCH] fix correction on top of compensation --- src/AgValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AgValue.cpp b/src/AgValue.cpp index b0b281d..6772147 100644 --- a/src/AgValue.cpp +++ b/src/AgValue.cpp @@ -562,7 +562,7 @@ float Measurements::getCorrectedPM25(AirGradient &ag, Configuration &config, boo pmCorrection.intercept); if (pmCorrection.useEPA) { // Add EPA compensation on top of SLR - corrected = ag.pms5003.compensate(pm25, humidity); + corrected = ag.pms5003.compensate(corrected, humidity); } } }