better vbus dump

This commit is contained in:
gemu2015 2021-02-24 10:09:33 +01:00
parent 16a30bd12e
commit 8b23b1a072
1 changed files with 10 additions and 0 deletions

View File

@ -912,6 +912,16 @@ void Dump2log(void) {
#endif
break;
}
} else if (meter_desc_p[(dump2log&7)-1].type=='v') {
// vbus
c=SML_SREAD;
if (c==EBUS_SYNC) {
index = 0;
}
sprintf(&log_data[index],"%02x ",c);
if (index<sizeof(log_data)-3) {
index+=3;
}
} else {
// sml
if (sml_start==0x77) {