Check value sensor value

This commit is contained in:
Phat Nguyen
2024-07-24 09:05:57 +07:00
parent df6cca3714
commit 5fb27b6d1e
19 changed files with 525 additions and 285 deletions

View File

@ -88,21 +88,21 @@ bool PMS5003::begin(void) {
*
* @return int PM1.0 index
*/
int PMS5003::getPm01Ae(void) { return utils::correctPMS(pms.getPM0_1()); }
int PMS5003::getPm01Ae(void) { return pms.getPM0_1(); }
/**
* @brief Read PM2.5 must call this function after @ref readData success
*
* @return int PM2.5 index
*/
int PMS5003::getPm25Ae(void) { return utils::correctPMS(pms.getPM2_5()); }
int PMS5003::getPm25Ae(void) { return pms.getPM2_5(); }
/**
* @brief Read PM10.0 must call this function after @ref readData success
*
* @return int PM10.0 index
*/
int PMS5003::getPm10Ae(void) { return utils::correctPMS(pms.getPM10()); }
int PMS5003::getPm10Ae(void) { return pms.getPM10(); }
/**
* @brief Read PM0.3 must call this function after @ref readData success
@ -110,7 +110,7 @@ int PMS5003::getPm10Ae(void) { return utils::correctPMS(pms.getPM10()); }
* @return int PM0.3 index
*/
int PMS5003::getPm03ParticleCount(void) {
return utils::correctPMS(pms.getCount0_3());
return pms.getCount0_3();
}
/**