mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-13 08:55:39 -04:00
Added SD card wiper tool
Frequency manager now creates FREQMAN.TXT if not found Moved graphics files
This commit is contained in:
parent
a0469d709d
commit
3ec725c172
46 changed files with 157 additions and 51 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue