mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-23 06:14:13 -04:00
Recon/FreqMan set limit in load_freqman_file_ex (#1098)
* changed a hardcoded value by a define, changed the order for the database clean so it happens first, changed load_freqman_file_ex so it can take a max num of freqs as a parameter with a default to FREQMAN_MAX_PER_FILE * added a swap and a set_db to clear as much as possible before the loading of a category * added a define for Recon max per files * remove unneeded comment
This commit is contained in:
parent
2fd3bf0136
commit
f66f438487
5 changed files with 23 additions and 22 deletions
|
@ -930,7 +930,7 @@ void ReconView::frequency_file_load(bool stop_all_before) {
|
|||
button_scanner_mode.set_text("RECON");
|
||||
}
|
||||
desc_cycle.set_style(&style_white);
|
||||
if (!load_freqman_file_ex(file_input, frequency_list, load_freqs, load_ranges, load_hamradios)) {
|
||||
if (!load_freqman_file_ex(file_input, frequency_list, load_freqs, load_ranges, load_hamradios, RECON_FREQMAN_MAX_PER_FILE)) {
|
||||
file_name.set_style(&style_red);
|
||||
desc_cycle.set_style(&style_red);
|
||||
desc_cycle.set(" NO " + file_input + ".TXT FILE ...");
|
||||
|
@ -943,7 +943,7 @@ void ReconView::frequency_file_load(bool stop_all_before) {
|
|||
desc_cycle.set("/0 no entries in list");
|
||||
file_name.set("BadOrEmpty " + file_input);
|
||||
} else {
|
||||
if (frequency_list.size() > FREQMAN_MAX_PER_FILE) {
|
||||
if (frequency_list.size() > RECON_FREQMAN_MAX_PER_FILE) {
|
||||
file_name.set_style(&style_yellow);
|
||||
desc_cycle.set_style(&style_yellow);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue