Skip to content

Commit

Permalink
Fix pm2.5 not using getAverage for ledbar
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbles07 committed Nov 10, 2024
1 parent 2f595b4 commit dc299c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AgStateMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit dc299c4

Please sign in to comment.