Compare commits

..

5 Commits

Author SHA1 Message Date
jLynx d326ec831c 1.7.2 (#1132)
* Update version.txt

* Update past_version.txt
2023-06-08 17:38:48 +12:00
dc2dc faac5b45c6 Update POCSAG.TXT (#1127)
Added Dapnet frequency for Hams Germany
2023-06-08 06:13:11 +02:00
dc2dc 5e930a7717 Update HAM_2M_BAND.TXT (#1128)
wrong Frequency for Ham Band 2 Meters
2023-06-08 06:12:08 +02:00
dc2dc aff5e22843 Update RADIOSONDE.TXT (#1129)
https://radiosondy.info/
added frequencies and added regions
2023-06-08 06:10:36 +02:00
Mark Thompson 344a8dc0a0 Fix crash when empty FreqMan files (#1113) and Fix missing Comma when editing text (#1125) (#1131)
* Fix crash issues with empty FreqMan files
* Added ability to delete empty files
* Fix missing Comma character when editing text #1125
2023-06-08 05:46:07 +02:00
9 changed files with 37 additions and 12 deletions
+1 -1
View File
@@ -1 +1 @@
v1.7.0
v1.7.1
+1 -1
View File
@@ -1 +1 @@
v1.7.1
v1.7.2
+13 -2
View File
@@ -226,8 +226,13 @@ void FrequencyManagerView::on_new_category(NavigationView& nav) {
}
void FrequencyManagerView::on_delete() {
database.erase(database.begin() + menu_view.get_index());
save_freqman_file(file_list[categories[current_category_id].second], database);
if (database.empty()) {
delete_freqman_file(file_list[categories[current_category_id].second]);
refresh_list();
} else {
database.erase(database.begin() + menu_view.get_index());
save_freqman_file(file_list[categories[current_category_id].second], database);
}
change_category(current_category_id);
}
@@ -272,6 +277,9 @@ FrequencyManagerView::FrequencyManagerView(
};
button_edit_freq.on_select = [this, &nav](Button&) {
if (database.empty()) {
database.push_back({0, 0, "", SINGLE});
}
auto new_view = nav.push<FrequencyKeypadView>(database[menu_view.get_index()].frequency_a);
new_view->on_changed = [this](rf::Frequency f) {
on_edit_freq(f);
@@ -279,6 +287,9 @@ FrequencyManagerView::FrequencyManagerView(
};
button_edit_desc.on_select = [this, &nav](Button&) {
if (database.empty()) {
database.push_back({0, 0, "", SINGLE});
}
desc_buffer = database[menu_view.get_index()].description;
on_edit_desc(nav);
};
+7
View File
@@ -281,6 +281,13 @@ bool get_freq_string(freqman_entry& entry, std::string& item_string) {
return true;
}
bool delete_freqman_file(std::string& file_stem) {
File freqman_file;
std::string freq_file_path = "/FREQMAN/" + file_stem + ".TXT";
delete_file(freq_file_path);
return false;
}
bool save_freqman_file(std::string& file_stem, freqman_db& db) {
File freqman_file;
std::string freq_file_path = "/FREQMAN/" + file_stem + ".TXT";
+1
View File
@@ -98,6 +98,7 @@ using freqman_db = std::vector<freqman_entry>;
bool load_freqman_file(std::string& file_stem, freqman_db& db);
bool load_freqman_file_ex(std::string& file_stem, freqman_db& db, bool load_freqs, bool load_ranges, bool load_hamradios, uint8_t limit);
bool get_freq_string(freqman_entry& entry, std::string& item_string);
bool delete_freqman_file(std::string& file_stem);
bool save_freqman_file(std::string& file_stem, freqman_db& db);
bool create_freqman_file(std::string& file_stem, File& freqman_file);
+2 -2
View File
@@ -43,8 +43,8 @@ class AlphanumView : public TextEntryView {
bool on_encoder(const EncoderEvent delta) override;
private:
const char* const keys_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ' .<";
const char* const keys_lower = "abcdefghijklmnopqrstuvwxyz' .<";
const char* const keys_upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ, .<";
const char* const keys_lower = "abcdefghijklmnopqrstuvwxyz, .<";
const char* const keys_digit = "0123456789!\"#'()*+-/:;=>?@[\\]<";
const std::pair<std::string, const char*> key_sets[3] = {
+1 -1
View File
@@ -1,2 +1,2 @@
a=144000000,b=147990000,m=NFM,bw=11k,s=5kHz,d=HAM 2m
a=144000000,b=148000000,m=NFM,bw=11k,s=5kHz,d=HAM 2m
+2 -1
View File
@@ -24,6 +24,7 @@ f=446525000,d=FRA Priv2
f=448425000,d=GER Fire 1200
f=465970000,d=GER Skyper1
f=466075000,d=GER Skyper2
f=439987500,d=GER HAM Dapnet
f=169650000,d=NL Medical
f=172450000,d=NL KPN3-Public
f=169800000,d=SWE Minicall1
@@ -36,4 +37,4 @@ f=147325000,d=CH Swissphone 2
f=147375000,d=CH Swissphone 3
f=147400000,d=CH Swissphone 4
f=169700000,d=CH Swissphone 5
f=173250000,d=SLO Fire
f=173250000,d=SLO Fire
+9 -4
View File
@@ -8,7 +8,9 @@ f=401600000,d=FR
f=402000000,d=BR FR GR IT RS
f=402010000,d=TR
f=402200000,d=GR
f=402300000,d=DE
f=402500000,d=AU DE
f=402700000,d=DE
f=402740000,d=GR
f=402790000,d=RS
f=402800000,d=GB IT RS
@@ -16,7 +18,7 @@ f=402870000,d=BE
f=403000000,d=BE BR CZ HU IE IT NL
f=403010000,d=DE NL TR
f=403150000,d=DE
f=403200000,d=HU
f=403200000,d=HU DE
f=403500000,d=BE HU
f=403530000,d=BY
f=403600000,d=RO
@@ -33,14 +35,17 @@ f=404300000,d=DE
f=404310000,d=DE
f=404380000,d=GB
f=404400000,d=GB
f=404500000,d=DE
f=404700000,d=DE
f=404710000,d=DE
f=404800000,d=IT
f=405000000,d=ES
f=405010000,d=FR
f=405030000,d=BY
f=405100000,d=GB
f=405300000,d=BY ES IE SE
f=405100000,d=GB DE
f=405300000,d=BY ES IE SE DE
f=405600000,d=GB
f=405670000,d=DE
f=405680000,d=GB
f=405700000,d=DE GB
f=405900000,d=DE
f=405900000,d=DE