mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-07 20:33:28 +00:00
fix losehu bug
This commit is contained in:
parent
6402789415
commit
f515b73118
1 changed files with 1 additions and 1 deletions
|
@ -615,7 +615,7 @@
|
||||||
const _scanlist = uint8ArrayToHexReverseString(rawEEPROM2.subarray(i / 0x10, i / 0x10 + 0x01))
|
const _scanlist = uint8ArrayToHexReverseString(rawEEPROM2.subarray(i / 0x10, i / 0x10 + 0x01))
|
||||||
const _channelData : any = {scanlist: []}
|
const _channelData : any = {scanlist: []}
|
||||||
_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 && _scanlist != "ff"){
|
if(_channelData.rx && _scanlist != "ff" && _scanlist != "0f"){
|
||||||
console.info(_channel)
|
console.info(_channel)
|
||||||
console.info(_scanlist)
|
console.info(_scanlist)
|
||||||
_channelData.offset = _channel.substr(16, 8) != "00000000" ? parseInt(_channel.substr(16, 8), 16) / 100000 : undefined
|
_channelData.offset = _channel.substr(16, 8) != "00000000" ? parseInt(_channel.substr(16, 8), 16) / 100000 : undefined
|
||||||
|
|
Loading…
Reference in a new issue