mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-19 11:42:09 +02:00
Change pm25Compensated
to compensated
This commit is contained in:
@ -306,7 +306,7 @@ void OledDisplay::showDashboard(const char *status) {
|
||||
/** Draw PM2.5 value */
|
||||
int pm25 = value.pm25_1;
|
||||
if (config.hasSensorSHT) {
|
||||
pm25 = ag->pms5003.pm25Compensated(pm25, value.Humidity);
|
||||
pm25 = ag->pms5003.compensated(pm25, value.Humidity);
|
||||
}
|
||||
DISP()->setFont(u8g2_font_t0_22b_tf);
|
||||
if (config.isPmStandardInUSAQI()) {
|
||||
@ -366,7 +366,7 @@ void OledDisplay::showDashboard(const char *status) {
|
||||
/** Set PM */
|
||||
int pm25 = value.pm25_1;
|
||||
if(config.hasSensorSHT) {
|
||||
pm25 = (int)ag->pms5003.pm25Compensated(pm25, value.Humidity);
|
||||
pm25 = (int)ag->pms5003.compensated(pm25, value.Humidity);
|
||||
}
|
||||
ag->display.setCursor(0, 12);
|
||||
if (utils::isValidPMS(value.pm25_1)) {
|
||||
|
Reference in New Issue
Block a user