From 24fff5fb5dd4e64d94dc4aac7a028dd2f1a24574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=9A=E7=8E=89=E5=B8=86?= Date: Mon, 29 Jan 2024 14:51:03 +0800 Subject: [PATCH] fix bug --- src/views/list/search-table/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/list/search-table/index.vue b/src/views/list/search-table/index.vue index 50d3e08..c3f7ae7 100644 --- a/src/views/list/search-table/index.vue +++ b/src/views/list/search-table/index.vue @@ -310,6 +310,7 @@ const _renderData = []; for (let i = 0; i < 0x0C80; i += 0x10) { const _channel = uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x10)) + console.log(_channel) const _channelData : any = {} _channelData.rx = _channel.substr(24, 8) != "ffffffff" ? parseInt(_channel.substr(24, 8), 16) / 100000 : undefined if(_channelData.rx){ @@ -327,7 +328,7 @@ _channelData.txCTCSS = state.CTCSSOption[parseInt(_channel.substr(12, 2), 16)] } if(_channelData.txTone == "2" || _channelData.txTone == "3"){ - _channelData.txTone = state.DCSOption[parseInt(_channel.substr(12, 2), 16)] + _channelData.txDCS = state.DCSOption[parseInt(_channel.substr(12, 2), 16)] } if(_channelData.rxTone == "1"){ _channelData.rxCTCSS = state.CTCSSOption[parseInt(_channel.substr(14, 2), 16)]