Fix pm2.5 not using getAverage for ledbar

This commit is contained in:
samuelbles07
2024-11-10 19:20:09 +07:00
parent 2f595b4e41
commit dc299c4b54

View File

@ -172,7 +172,7 @@ int StateMachine::co2handleLeds(void) {
int StateMachine::pm25handleLeds(void) {
int totalUsed = ag->ledBar.getNumberOfLeds();
int pm25Value = round(value.getFloat(Measurements::PM25));
int pm25Value = round(value.getAverage(Measurements::PM25));
if (config.hasSensorSHT && config.isPMCorrectionEnabled()) {
pm25Value = round(value.getCorrectedPM25(*ag, config, true));
}