Skip to content

Commit

Permalink
[temporary commit]
Browse files Browse the repository at this point in the history
  • Loading branch information
pnt325 committed Apr 3, 2024
1 parent 954a775 commit f52eab8
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 1,016 deletions.
14 changes: 7 additions & 7 deletions examples/BASIC/BASIC.ino
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ public:
if (JSON.typeof_(root["ledBarMode"]) == "string") {
String mode = root["ledBarMode"];
if (mode == "co2") {
ledBarMode = UseLedBarCO2;
ledBarMode = LedBarModeCO2;
} else if (mode == "pm") {
ledBarMode = UseLedBarPM;
ledBarMode = LedBarModePm;
} else if (mode == "off") {
ledBarMode = UseLedBarOff;
ledBarMode = LedBarModeOff;
} else {
ledBarMode = UseLedBarOff;
ledBarMode = LedBarModeOff;
}
}

Expand Down Expand Up @@ -330,9 +330,9 @@ public:
/**
* @brief Get server config led bar mode
*
* @return UseLedBar
* @return LedBarMode
*/
UseLedBar getLedBarMode(void) { return ledBarMode; }
LedBarMode getLedBarMode(void) { return ledBarMode; }

private:
bool inF; /** Temperature unit, true: F, false: C */
Expand All @@ -341,7 +341,7 @@ private:
bool serverFailed; /** Flag indicate post data to server failed */
bool co2Calib; /** Is co2Ppmcalibration requset */
int co2AbcCalib = -1; /** update auto calibration number of day */
UseLedBar ledBarMode = UseLedBarCO2; /** */
LedBarMode ledBarMode = LedBarModeCO2; /** */
char models[20]; /** */
char mqttBroker[256]; /** */
};
Expand Down
Loading

0 comments on commit f52eab8

Please sign in to comment.