UI NVM: Fix base address for UV3x0 radios, and convert from 10*Hz to Hz

replace/6968f6d62d54c24268c7fc1813fb7aa5f82330fd
Federico Amedeo Izzo 2021-01-10 11:50:03 +01:00
rodzic 47c20f8cff
commit 6b47a32292
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -116,7 +116,7 @@ typedef struct
}
mduv3x0Channel_t;
const uint32_t chDataBaseAddr = 0x40000; /**< Base address of channel data */
const uint32_t chDataBaseAddr = 0x110000; /**< Base address of channel data */
const uint32_t maxNumChannels = 3000; /**< Maximum number of channels in memory */
/**
@ -230,8 +230,8 @@ int nvm_readChannelData(channel_t *channel, uint16_t pos)
channel->squelch = chData.squelch;
channel->rx_only = chData.rx_only;
channel->vox = chData.vox;
channel->rx_frequency = _bcd2bin(chData.rx_frequency);
channel->tx_frequency = _bcd2bin(chData.tx_frequency);
channel->rx_frequency = _bcd2bin(chData.rx_frequency) * 10;
channel->tx_frequency = _bcd2bin(chData.tx_frequency) * 10;
channel->tot = chData.tot;
channel->tot_rekey_delay = chData.tot_rekey_delay;
channel->emSys_index = chData.emergency_system_index;