[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:
FlorianandFlorian authored and GitHub committed 2025-08-19 09:15:41 -05:00
1 parent 6e6b54b05e
commit 32174e37a5
52 files changed
+1187 -1136

No files matched your search

+3 -3
View File
@@ -135,7 +135,7 @@ void setupPWM() {
calibrationGamma[i] = PWM_DEFAULT_GAMMA;
}
Log.trace(F("actuatorPWM setup done " CR));
THEENGS_LOG_TRACE(F("actuatorPWM setup done " CR));
}
// This applies a power curve to the input to try to make the inputs
@@ -186,7 +186,7 @@ void PWMLoop() {
# else
analogWrite(channelPins[i], dutyCycle);
# endif
//Log.notice(F("Setting channel %d : %d" CR),i,dutyCycle);
//THEENGS_LOG_NOTICE(F("Setting channel %d : %d" CR),i,dutyCycle);
}
}
@@ -197,7 +197,7 @@ boolean PWMtoX() {
# if jsonReceiving
void XtoPWM(const char* topicOri, JsonObject& jsonData) {
if (cmpToMainTopic(topicOri, subjectMQTTtoPWMset)) {
Log.trace(F("MQTTtoPWM JSON analysis" CR));
THEENGS_LOG_TRACE(F("MQTTtoPWM JSON analysis" CR));
// Parse the target value for each channel
int modifiedChannelBits = 0;
for (int i = 0; i < kNumChannels; ++i) {