Update xsns_53_sml.ino

This commit is contained in:
gemu2015 2021-02-24 10:20:03 +01:00
parent 8b23b1a072
commit 9be1758f61
1 changed files with 2 additions and 1 deletions

View File

@ -917,6 +917,7 @@ void Dump2log(void) {
c=SML_SREAD; c=SML_SREAD;
if (c==EBUS_SYNC) { if (c==EBUS_SYNC) {
index = 0; index = 0;
AddLogData(LOG_LEVEL_INFO, log_data);
} }
sprintf(&log_data[index],"%02x ",c); sprintf(&log_data[index],"%02x ",c);
if (index<sizeof(log_data)-3) { if (index<sizeof(log_data)-3) {
@ -939,7 +940,7 @@ void Dump2log(void) {
} }
} }
} }
if (index>2) { if (index>2 && (meter_desc_p[(dump2log&7)-1].type!='v')) {
log_data[index]=0; log_data[index]=0;
AddLogData(LOG_LEVEL_INFO, log_data); AddLogData(LOG_LEVEL_INFO, log_data);
} }