[SYS] Reduce Logs flash footprint (#2232)
By building only the log level required into LOG_LEVEL Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
1 parent
6e6b54b05e
commit
32174e37a5
52 files changed
+1187
-1136
No files matched your search
@@ -47,7 +47,7 @@
|
||||
static unsigned long timetemt6000 = 0;
|
||||
|
||||
void setupZsensorTEMT6000() {
|
||||
Log.notice(F("Setup TEMT6000 on pin: %i" CR), TEMT6000LIGHTSENSORPIN);
|
||||
THEENGS_LOG_NOTICE(F("Setup TEMT6000 on pin: %i" CR), TEMT6000LIGHTSENSORPIN);
|
||||
pinMode(TEMT6000LIGHTSENSORPIN, INPUT);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ void MeasureLightIntensityTEMT6000() {
|
||||
static uint32_t persisted_lux;
|
||||
timetemt6000 = millis();
|
||||
|
||||
Log.trace(F("Creating TEMT6000 buffer" CR));
|
||||
THEENGS_LOG_TRACE(F("Creating TEMT6000 buffer" CR));
|
||||
StaticJsonDocument<JSON_MSG_BUFFER> TEMT6000dataBuffer;
|
||||
JsonObject TEMT6000data = TEMT6000dataBuffer.to<JsonObject>();
|
||||
|
||||
@@ -74,7 +74,7 @@ void MeasureLightIntensityTEMT6000() {
|
||||
TEMT6000data["origin"] = subjectTEMT6000toMQTT;
|
||||
enqueueJsonObject(TEMT6000data);
|
||||
} else {
|
||||
Log.trace(F("Same lux value, do not send" CR));
|
||||
THEENGS_LOG_TRACE(F("Same lux value, do not send" CR));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user