mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-13 21:29:56 +00:00
Added SD card wiper tool
Frequency manager now creates FREQMAN.TXT if not found Moved graphics files
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user