0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

display updates

This commit is contained in:
OneOfEleven
2023-10-30 00:40:34 +00:00
parent dac0cc0d18
commit 0596b74719
6 changed files with 25 additions and 13 deletions

View File

@ -80,11 +80,15 @@ const freq_band_table_t FREQ_BAND_TABLE[7] =
};
#endif
// the first 7 values MUST remain in those same positions (to remain compatible with the QS config windows software)
// the first 7 values MUST remain in those same positions
// so as to remain compatible with the QS config software
//
const uint16_t STEP_FREQ_TABLE[21] = {
250, 500, 625, 1000, 1250, 2500, 833,
1, 5, 10, 25, 50, 100, 125, 1500, 3000, 5000, 10000, 12500, 25000, 50000
};
// the above step sizes will be sorted to appear to be in order to the user
uint16_t step_freq_table_sorted[ARRAY_SIZE(STEP_FREQ_TABLE)];
unsigned int FREQUENCY_get_step_index(const unsigned int step_size)