From 24c59ffd9a36bc14f36f2b3440129331dce13f95 Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Sat, 15 Jun 2024 00:50:27 +0800 Subject: [PATCH] update --- src/views/list/search-table/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/list/search-table/index.vue b/src/views/list/search-table/index.vue index acbac96..8fb7d75 100644 --- a/src/views/list/search-table/index.vue +++ b/src/views/list/search-table/index.vue @@ -714,7 +714,11 @@ const _tx = _channel.tx && _channel.rx ? Math.abs(parseInt((_channel.tx * 100000).toFixed(0)) - parseInt((_channel.rx * 100000).toFixed(0))) : NaN _channelhex += !Number.isNaN(_tx) ? _tx.toString(16).padStart(8, '0') : '00000000' _channelhex += parseInt((_channel.rx * 100000).toFixed(0)).toString(16).padStart(8, '0') - + + if(_channelhex.indexOf('-1') != -1){ + _channelhex = _channelhex.replace(/^(.{10})(.{6})(.*)$/, '$1000000$3'); + } + console.log(_channelhex) rawEEPROM.set(hexReverseStringToUint8Array(_channelhex), i)