mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-09 13:24:38 +00:00
update
This commit is contained in:
parent
4d8909a348
commit
24c59ffd9a
1 changed files with 5 additions and 1 deletions
|
@ -715,6 +715,10 @@
|
||||||
_channelhex += !Number.isNaN(_tx) ? _tx.toString(16).padStart(8, '0') : '00000000'
|
_channelhex += !Number.isNaN(_tx) ? _tx.toString(16).padStart(8, '0') : '00000000'
|
||||||
_channelhex += parseInt((_channel.rx * 100000).toFixed(0)).toString(16).padStart(8, '0')
|
_channelhex += parseInt((_channel.rx * 100000).toFixed(0)).toString(16).padStart(8, '0')
|
||||||
|
|
||||||
|
if(_channelhex.indexOf('-1') != -1){
|
||||||
|
_channelhex = _channelhex.replace(/^(.{10})(.{6})(.*)$/, '$1000000$3');
|
||||||
|
}
|
||||||
|
|
||||||
console.log(_channelhex)
|
console.log(_channelhex)
|
||||||
rawEEPROM.set(hexReverseStringToUint8Array(_channelhex), i)
|
rawEEPROM.set(hexReverseStringToUint8Array(_channelhex), i)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue