diff --git a/index.html b/index.html index 83de64c..18e77c0 100644 --- a/index.html +++ b/index.html @@ -4033,9 +4033,31 @@ async function pysimProactiveLogRender() { + '0x' + e.type_hex.toUpperCase() + '' + '' + esc(name) + '' + (qual ? '' + esc(qual) + '' : '') - + '' - + (e.tr_hex ? '
Response: ' + esc(e.tr_hex) + '
' : '') + ''; + if (e.tr_hex) { + html += '
Response: '; + if (e.type_hex === '26' && e.qualifier) { + const codec = PLI_CODECS[e.qualifier]; + if (codec && codec.decode) { + const vals = codec.decode(e.tr_hex); + if (vals) { + const parts = []; + codec.fields.forEach(f => { + if (vals[f.id] !== undefined) parts.push(f.label + ': ' + vals[f.id]); + }); + html += esc(parts.length ? parts.join(', ') : e.tr_hex); + } else { + html += esc(e.tr_hex); + } + } else { + html += esc(e.tr_hex); + } + } else { + html += esc(e.tr_hex); + } + html += '
'; + } + html += ''; }); el.innerHTML = html; } catch (err) {