kopia lustrzana https://github.com/OpenRTX/OpenRTX
NVM: Convert freq from tens of Hz to Hz when reading CPS channel
rodzic
e690009171
commit
47c20f8cff
|
@ -210,8 +210,8 @@ int nvm_readChannelData(channel_t *channel, uint16_t pos)
|
||||||
channel->rx_only = chData.rx_only;
|
channel->rx_only = chData.rx_only;
|
||||||
channel->vox = chData.vox;
|
channel->vox = chData.vox;
|
||||||
channel->power = ((chData.power == 1) ? 5.0f : 1.0f);
|
channel->power = ((chData.power == 1) ? 5.0f : 1.0f);
|
||||||
channel->rx_frequency = _bcd2bin(chData.rx_frequency);
|
channel->rx_frequency = _bcd2bin(chData.rx_frequency) * 10;
|
||||||
channel->tx_frequency = _bcd2bin(chData.tx_frequency);
|
channel->tx_frequency = _bcd2bin(chData.tx_frequency) * 10;
|
||||||
channel->tot = chData.tot;
|
channel->tot = chData.tot;
|
||||||
channel->tot_rekey_delay = chData.tot_rekey_delay;
|
channel->tot_rekey_delay = chData.tot_rekey_delay;
|
||||||
channel->emSys_index = chData.emergency_system_index;
|
channel->emSys_index = chData.emergency_system_index;
|
||||||
|
|
Ładowanie…
Reference in New Issue