mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-07 20:33:28 +00:00
update
This commit is contained in:
parent
dd27878ac5
commit
c24b3caa5a
1 changed files with 2 additions and 2 deletions
|
@ -414,9 +414,9 @@
|
|||
_channelhex += "00"
|
||||
}
|
||||
|
||||
const _rx = Math.abs(parseInt((_channel.tx * 100000).toString()) - parseInt((_channel.rx * 100000).toString()))
|
||||
const _rx = parseInt((_channel.tx * 100000).toFixed(0)) - parseInt((_channel.rx * 100000).toFixed(0))
|
||||
_channelhex += !Number.isNaN(_rx) ? _rx.toString(16).padStart(8, '0') : '00000000'
|
||||
_channelhex += (parseInt((_channel.rx * 100000).toString())).toString(16).padStart(8, '0')
|
||||
_channelhex += parseInt((_channel.rx * 100000).toFixed(0)).toString(16).padStart(8, '0')
|
||||
|
||||
console.log(_channelhex)
|
||||
rawEEPROM.set(hexReverseStringToUint8Array(_channelhex), i)
|
||||
|
|
Loading…
Reference in a new issue