Skip to content

Commit

Permalink
Fix wrong PM type being uploaded for opensense (PM2.5 instead of PM1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrik committed Nov 22, 2024
1 parent bd80bc6 commit e509170
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void scheduleUpload(AppDeviceId appDeviceId, SensorData data) {
message.addItem(pmPrefix + "P2", data.getValue(ESensorItem.PM2_5));
}
if (data.hasValue(ESensorItem.PM1_0)) {
message.addItem(pmPrefix + "P0", data.getValue(ESensorItem.PM2_5));
message.addItem(pmPrefix + "P0", data.getValue(ESensorItem.PM1_0));
}
if (data.hasValue(ESensorItem.PM4_0)) {
message.addItem(pmPrefix + "P4", data.getValue(ESensorItem.PM4_0));
Expand Down

0 comments on commit e509170

Please sign in to comment.