better vbus dump

This commit is contained in:
gemu2015 2021-02-24 10:09:33 +01:00
parent 16a30bd12e
commit 8b23b1a072

View File

@ -912,6 +912,16 @@ void Dump2log(void) {
#endif #endif
break; 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 { } else {
// sml // sml
if (sml_start==0x77) { if (sml_start==0x77) {