From f52cb12b77abe4758ae1a4e5d06ff351b5a4d0a6 Mon Sep 17 00:00:00 2001 From: Sven Ebenfeld Date: Sun, 7 Feb 2021 20:33:09 +0100 Subject: [PATCH] xsns_53_sml: add option to emit ebus sync only telegrams Signed-off-by: Sven Ebenfeld --- tasmota/xsns_53_sml.ino | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tasmota/xsns_53_sml.ino b/tasmota/xsns_53_sml.ino index f6a1c57ba..84b7643fa 100755 --- a/tasmota/xsns_53_sml.ino +++ b/tasmota/xsns_53_sml.ino @@ -904,7 +904,12 @@ void Dump2log(void) { c=SML_SREAD; sprintf(&log_data[index],"%02x ",c); index+=3; - if (c==EBUS_SYNC) break; + if (c==EBUS_SYNC) { +#if SML_EBUS_SKIP_SYNC_DUMPS + index = index == 5 ? 0 : index; +#endif + break; + } } else { // sml if (sml_start==0x77) {