fix losehu bug

This commit is contained in:
Silent YANG 2024-09-23 22:38:06 +08:00
parent 6402789415
commit f515b73118

View file

@ -615,7 +615,7 @@
const _scanlist = uint8ArrayToHexReverseString(rawEEPROM2.subarray(i / 0x10, i / 0x10 + 0x01))
const _channelData : any = {scanlist: []}
_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(_scanlist)
_channelData.offset = _channel.substr(16, 8) != "00000000" ? parseInt(_channel.substr(16, 8), 16) / 100000 : undefined