File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ void OutdoorAirQualitySensor::setEnabled(bool isEnabled) {
79
79
return ;
80
80
}
81
81
if (isEnabled) {
82
- setMode (OutdoorAirQualitySensorMode::defaultMode );
82
+ setMode (OutdoorAirQualitySensorMode::outdoorAirQuality );
83
83
} else {
84
84
setMode (OutdoorAirQualitySensorMode::powerDown);
85
85
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ enum class OutdoorAirQualitySensorMode {
10
10
powerDown = 0 , // /< Mode to turn off the sensor and reduce power consumption
11
11
cleaning = 1 , // /< Cleaning mode to perform a thermal cleaning cycle of the MOx element
12
12
outdoorAirQuality = 2 , // /< Mode to measure outdoor air quality
13
- defaultMode = powerDown // Can't use default as it's a reserved keyword
13
+ defaultMode = powerDown // Can't use ' default' as it's a reserved keyword
14
14
};
15
15
16
16
/* *
@@ -126,7 +126,7 @@ class OutdoorAirQualitySensor : public I2CDevice {
126
126
/* *
127
127
* @brief Sets the enabled state of the outdoor air quality sensor.
128
128
* When disabled the sensor goes in power down mode.
129
- * When the sensor is enabled after being disabled, the sensor will go back to the default mode.
129
+ * When the sensor is enabled after being disabled, the sensor will go back to the outdoorAirQuality mode.
130
130
* Call persistSettings() on NiclaSenseEnv instance after changing the enabled state to make the change persistent.
131
131
* @param isEnabled True to enable the sensor, false to disable it.
132
132
*/
You can’t perform that action at this time.
0 commit comments