mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-09 13:24:38 +00:00
fix bug
This commit is contained in:
parent
eb27baa2c7
commit
dd27878ac5
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@
|
||||||
|
|
||||||
const _rx = Math.abs(parseInt((_channel.tx * 100000).toString()) - parseInt((_channel.rx * 100000).toString()))
|
const _rx = Math.abs(parseInt((_channel.tx * 100000).toString()) - parseInt((_channel.rx * 100000).toString()))
|
||||||
_channelhex += !Number.isNaN(_rx) ? _rx.toString(16).padStart(8, '0') : '00000000'
|
_channelhex += !Number.isNaN(_rx) ? _rx.toString(16).padStart(8, '0') : '00000000'
|
||||||
_channelhex += (_channel.rx * 100000).toString(16).padStart(8, '0')
|
_channelhex += (parseInt((_channel.rx * 100000).toString())).toString(16).padStart(8, '0')
|
||||||
|
|
||||||
console.log(_channelhex)
|
console.log(_channelhex)
|
||||||
rawEEPROM.set(hexReverseStringToUint8Array(_channelhex), i)
|
rawEEPROM.set(hexReverseStringToUint8Array(_channelhex), i)
|
||||||
|
|
Loading…
Reference in a new issue