mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-03-03 05:54:23 +01:00
[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:
@@ -62,14 +62,14 @@ void MeasureGPIOKeyCode() {
|
||||
InputStateGPIOKeyCode = reading;
|
||||
sprintf(hex, "%02x", InputStateGPIOKeyCode);
|
||||
hex[2] = 0;
|
||||
Log.notice(F("GPIOKeyCode %H" CR), hex);
|
||||
THEENGS_LOG_NOTICE(F("GPIOKeyCode %H" CR), hex);
|
||||
pub(subjectGPIOKeyCodetoMQTT, hex);
|
||||
lastLatchStateGPIOKeyCode = latch;
|
||||
}
|
||||
|
||||
if (latch != lastLatchStateGPIOKeyCode) {
|
||||
lastLatchStateGPIOKeyCode = latch;
|
||||
Log.notice(F("GPIOKeyCode latch %d" CR), latch);
|
||||
THEENGS_LOG_NOTICE(F("GPIOKeyCode latch %d" CR), latch);
|
||||
if (latch == 0)
|
||||
pub(subjectGPIOKeyCodeStatetoMQTT, "done");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user