mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-07 20:33:28 +00:00
update
This commit is contained in:
parent
124172f6f0
commit
0b639732ff
1 changed files with 4 additions and 3 deletions
|
@ -195,10 +195,11 @@ const changeSat = async (sat: any) => {
|
|||
let freqFlag = false
|
||||
state.freqDb.map((e: any)=>{
|
||||
if(data.path[1].split(" ")[1] == e.norad_id && e.mode.indexOf('FM') != -1){
|
||||
console.log(e)
|
||||
freqFlag = true
|
||||
state.tx = parseFloat(e.uplink)
|
||||
state.rx = parseFloat(e.downlink)
|
||||
state.txTone = parseFloat(state.CTCSSOption.reduce((_e: any, _n: any)=>{
|
||||
state.tx = e.uplink ? parseFloat(e.uplink.split('/')[0]) : 0
|
||||
state.rx = e.downlink ? parseFloat(e.downlink.split('/')[0]) : 0
|
||||
state.txTone = parseFloat([0, ...state.CTCSSOption].reduce((_e: any, _n: any)=>{
|
||||
return e.mode.indexOf(_n) != -1 ? _n : _e
|
||||
}))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue