mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-08 21:04:19 +00:00
fix bug
This commit is contained in:
parent
0c35677669
commit
24fff5fb5d
1 changed files with 2 additions and 1 deletions
|
@ -310,6 +310,7 @@
|
||||||
const _renderData = [];
|
const _renderData = [];
|
||||||
for (let i = 0; i < 0x0C80; i += 0x10) {
|
for (let i = 0; i < 0x0C80; i += 0x10) {
|
||||||
const _channel = uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x10))
|
const _channel = uint8ArrayToHexReverseString(rawEEPROM.subarray(i, i + 0x10))
|
||||||
|
console.log(_channel)
|
||||||
const _channelData : any = {}
|
const _channelData : any = {}
|
||||||
_channelData.rx = _channel.substr(24, 8) != "ffffffff" ? parseInt(_channel.substr(24, 8), 16) / 100000 : undefined
|
_channelData.rx = _channel.substr(24, 8) != "ffffffff" ? parseInt(_channel.substr(24, 8), 16) / 100000 : undefined
|
||||||
if(_channelData.rx){
|
if(_channelData.rx){
|
||||||
|
@ -327,7 +328,7 @@
|
||||||
_channelData.txCTCSS = state.CTCSSOption[parseInt(_channel.substr(12, 2), 16)]
|
_channelData.txCTCSS = state.CTCSSOption[parseInt(_channel.substr(12, 2), 16)]
|
||||||
}
|
}
|
||||||
if(_channelData.txTone == "2" || _channelData.txTone == "3"){
|
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"){
|
if(_channelData.rxTone == "1"){
|
||||||
_channelData.rxCTCSS = state.CTCSSOption[parseInt(_channel.substr(14, 2), 16)]
|
_channelData.rxCTCSS = state.CTCSSOption[parseInt(_channel.substr(14, 2), 16)]
|
||||||
|
|
Loading…
Reference in a new issue