mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-31 19:19:08 +03:00
° fix compile time error in ems.cpp (missing comment)
° show 'echo:telegram' msg only in jabber mode ° fix wrong value when applying 'log j'
This commit is contained in:
@@ -1468,7 +1468,7 @@ void TelnetCommandCallback(uint8_t wc, const char * commandLine) {
|
|||||||
ems_setLogging(EMS_SYS_LOGGING_NONE);
|
ems_setLogging(EMS_SYS_LOGGING_NONE);
|
||||||
ok = true;
|
ok = true;
|
||||||
} else if (strcmp(second_cmd, "j") == 0) {
|
} else if (strcmp(second_cmd, "j") == 0) {
|
||||||
ems_setLogging(EMS_SYS_LOGGING_NONE);
|
ems_setLogging(EMS_SYS_LOGGING_JABBER);
|
||||||
ok = true;
|
ok = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -879,7 +879,7 @@ void ems_parseTelegram(uint8_t * telegram, uint8_t length) {
|
|||||||
// ignore anything that doesn't resemble a proper telegram package
|
// ignore anything that doesn't resemble a proper telegram package
|
||||||
// minimal is 5 bytes, excluding CRC at the end
|
// minimal is 5 bytes, excluding CRC at the end
|
||||||
if (length <= 4) {
|
if (length <= 4) {
|
||||||
_debugPrintTelegram("Noisy data:", &EMS_RxTelegram, COLOR_RED);
|
// _debugPrintTelegram("Noisy data:", &EMS_RxTelegram, COLOR_RED);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1122,7 +1122,8 @@ void _processType(_EMS_RxTelegram * EMS_RxTelegram) {
|
|||||||
|
|
||||||
// if its an echo of ourselves from the master UBA, ignore. This should never happen mind you
|
// if its an echo of ourselves from the master UBA, ignore. This should never happen mind you
|
||||||
if (EMS_RxTelegram->src == EMS_ID_ME) {
|
if (EMS_RxTelegram->src == EMS_ID_ME) {
|
||||||
_debugPrintTelegram("echo:", EMS_RxTelegram, COLOR_WHITE);
|
if (EMS_Sys_Status.emsLogging == EMS_SYS_LOGGING_JABBER)
|
||||||
|
_debugPrintTelegram("echo:", EMS_RxTelegram, COLOR_WHITE);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user