generated from Grigo/AndroidTemplate
added SI
This commit is contained in:
@@ -145,6 +145,8 @@
|
||||
if (o.gold_error != null) snap.goldError = Number(o.gold_error);
|
||||
if (o.gold_all_error != null) snap.goldAllError = Number(o.gold_all_error);
|
||||
if (o.sync_word_valid != null) snap.syncWordValid = Number(o.sync_word_valid);
|
||||
if (o.crc_ok != null) snap.extraFields.crc_ok = String(o.crc_ok);
|
||||
if (o.kor_level != null) snap.extraFields.kor_level = String(o.kor_level);
|
||||
if (o.fields && typeof o.fields === 'object') {
|
||||
for (const [k, v] of Object.entries(o.fields)) {
|
||||
if (!isKnownLabel(k)) snap.extraFields[k] = String(v);
|
||||
@@ -196,6 +198,8 @@
|
||||
{ key: 'packetTotal', label: 'Всего', fmt: s => s.packetTotal != null ? String(s.packetTotal) : '—' },
|
||||
{ key: 'packetError', label: 'Ошибки', fmt: s => s.packetError != null ? String(s.packetError) : '—' },
|
||||
{ key: 'crcError', label: 'CRC err', fmt: s => s.crcError != null ? String(s.crcError) : '—' },
|
||||
{ key: 'crcOk', label: 'CRC OK', fmt: s => s.extraFields?.crc_ok != null ? s.extraFields.crc_ok : '—' },
|
||||
{ key: 'korLevel', label: 'KorLevel', fmt: s => s.extraFields?.kor_level != null ? s.extraFields.kor_level : '—' },
|
||||
{ key: 'noise', label: 'Noice', fmt: s => s.noiseDbm != null ? String(s.noiseDbm) : '—' },
|
||||
{ key: 'goldError', label: 'Golda Error', fmt: s => s.goldError != null ? String(s.goldError) : '—' },
|
||||
{ key: 'goldAllError', label: 'Golda All Error', fmt: s => s.goldAllError != null ? String(s.goldAllError) : '—' },
|
||||
|
||||
Reference in New Issue
Block a user