Explicitly set active mode for PM sensor upon initialization

This commit is contained in:
nick-4711
2024-09-15 08:22:50 +07:00
parent b7339de31f
commit 0d39643e76
6 changed files with 35 additions and 21 deletions
+2 -5
View File
@@ -38,14 +38,11 @@ bool PMS5003::begin(HardwareSerial &serial) {
PMS5003::PMS5003(BoardType def) : _boardDef(def) {}
/**
* @brief Init sensor
*
* @return true Success
* @return false Failure
* Initializes the sensor.
*/
bool PMS5003::begin(void) {
if (this->_isBegin) {
AgLog("Initialized, call end() then try again");
AgLog("Already initialized, call end() then try again");
return true;
}