Added SD card wiper tool

Frequency manager now creates FREQMAN.TXT if not found
Moved graphics files
This commit is contained in:
furrtek 2017-01-10 18:40:33 +00:00
parent a0469d709d
commit 3ec725c172
46 changed files with 157 additions and 51 deletions

View file

@ -74,8 +74,7 @@ bool save_freqman_file(std::vector<freqman_entry> &frequencies) {
size_t n;
std::string item_string;
auto result = freqs_file.create("freqman.txt");
if (result.is_valid()) return false;
if (!create_freqman_file(freqs_file)) return false;
for (n = 0; n < frequencies.size(); n++) {
item_string = "f=" + to_string_dec_uint(frequencies[n].value);
@ -89,6 +88,13 @@ bool save_freqman_file(std::vector<freqman_entry> &frequencies) {
return true;
}
bool create_freqman_file(File &freqs_file) {
auto result = freqs_file.create("freqman.txt");
if (result.is_valid()) return false;
return true;
}
std::string freqman_item_string(freqman_entry &entry) {
std::string item_string, frequency_str, description;
char temp_buffer[32];