mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-16 10:12:09 +02:00
Updated log texts
This commit is contained in:
@ -1768,18 +1768,18 @@ static void updateServerConfiguration(void) {
|
|||||||
if (agServer.getCo2AbcDaysConfig() > 0) {
|
if (agServer.getCo2AbcDaysConfig() > 0) {
|
||||||
if (hasSensorS8) {
|
if (hasSensorS8) {
|
||||||
int newHour = agServer.getCo2AbcDaysConfig() * 24;
|
int newHour = agServer.getCo2AbcDaysConfig() * 24;
|
||||||
Serial.printf("abcDays config: %d days(%d hours)\r\n",
|
Serial.printf("Requested abcDays setting: %d days (%d hours)\r\n",
|
||||||
agServer.getCo2AbcDaysConfig(), newHour);
|
agServer.getCo2AbcDaysConfig(), newHour);
|
||||||
int curHour = ag.s8.getAbcPeriod();
|
int curHour = ag.s8.getAbcPeriod();
|
||||||
Serial.printf("Current config: %d (hours)\r\n", curHour);
|
Serial.printf("Current S8 abcDays setting: %d (hours)\r\n", curHour);
|
||||||
if (curHour == newHour) {
|
if (curHour == newHour) {
|
||||||
Serial.println("Set 'abcDays' ignored");
|
Serial.println("'abcDays' unchanged");
|
||||||
} else {
|
} else {
|
||||||
if (ag.s8.setAbcPeriod(agServer.getCo2AbcDaysConfig() * 24) ==
|
if (ag.s8.setAbcPeriod(agServer.getCo2AbcDaysConfig() * 24) ==
|
||||||
false) {
|
false) {
|
||||||
Serial.println("Set S8 abcDays period calibration failed");
|
Serial.println("Set S8 abcDays period failed");
|
||||||
} else {
|
} else {
|
||||||
Serial.println("Set S8 abcDays period calibration success");
|
Serial.println("Set S8 abcDays period success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1234,18 +1234,18 @@ static void updateServerConfiguration(void) {
|
|||||||
if (agServer.getCo2AbcDaysConfig() > 0) {
|
if (agServer.getCo2AbcDaysConfig() > 0) {
|
||||||
if (hasSensorS8) {
|
if (hasSensorS8) {
|
||||||
int newHour = agServer.getCo2AbcDaysConfig() * 24;
|
int newHour = agServer.getCo2AbcDaysConfig() * 24;
|
||||||
Serial.printf("abcDays config: %d days(%d hours)\r\n",
|
Serial.printf("Requested abcDays setting: %d days (%d hours)\r\n",
|
||||||
agServer.getCo2AbcDaysConfig(), newHour);
|
agServer.getCo2AbcDaysConfig(), newHour);
|
||||||
int curHour = ag.s8.getAbcPeriod();
|
int curHour = ag.s8.getAbcPeriod();
|
||||||
Serial.printf("Current config: %d (hours)\r\n", curHour);
|
Serial.printf("Current S8 abcDays setting: %d (hours)\r\n", curHour);
|
||||||
if (curHour == newHour) {
|
if (curHour == newHour) {
|
||||||
Serial.println("Set 'abcDays' ignored");
|
Serial.println("'abcDays' unchanged");
|
||||||
} else {
|
} else {
|
||||||
if (ag.s8.setAbcPeriod(agServer.getCo2AbcDaysConfig() * 24) ==
|
if (ag.s8.setAbcPeriod(agServer.getCo2AbcDaysConfig() * 24) ==
|
||||||
false) {
|
false) {
|
||||||
Serial.println("Set S8 abcDays period calibration failed");
|
Serial.println("Set S8 abcDays period failed");
|
||||||
} else {
|
} else {
|
||||||
Serial.println("Set S8 abcDays period calibration success");
|
Serial.println("Set S8 abcDays period success");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user