Skip to content

Commit e509170

Browse files
committed
Fix wrong PM type being uploaded for opensense (PM2.5 instead of PM1.0)
1 parent bd80bc6 commit e509170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sensor-data-bridge/src/main/java/nl/bertriksikken/opensense/OpenSenseUploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void scheduleUpload(AppDeviceId appDeviceId, SensorData data) {
7878
message.addItem(pmPrefix + "P2", data.getValue(ESensorItem.PM2_5));
7979
}
8080
if (data.hasValue(ESensorItem.PM1_0)) {
81-
message.addItem(pmPrefix + "P0", data.getValue(ESensorItem.PM2_5));
81+
message.addItem(pmPrefix + "P0", data.getValue(ESensorItem.PM1_0));
8282
}
8383
if (data.hasValue(ESensorItem.PM4_0)) {
8484
message.addItem(pmPrefix + "P4", data.getValue(ESensorItem.PM4_0));

0 commit comments

Comments
 (0)