mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-29 01:29:03 -04:00
Changed freqman file loading to be a bit less stupid
Capped freqman file entries to 50 due to RAM overflow (?)
This commit is contained in:
parent
73d47cd77d
commit
34b99042ef
5 changed files with 84 additions and 55 deletions
|
@ -29,6 +29,10 @@
|
|||
#ifndef __FREQMAN_H__
|
||||
#define __FREQMAN_H__
|
||||
|
||||
#define FREQMAN_DESC_MAX_LEN 30
|
||||
#define FREQMAN_MAX_PER_FILE 50
|
||||
#define FREQMAN_MAX_PER_FILE_STR "50"
|
||||
|
||||
using namespace ui;
|
||||
using namespace std;
|
||||
|
||||
|
@ -40,9 +44,9 @@ enum freqman_error {
|
|||
};
|
||||
|
||||
struct freqman_entry {
|
||||
rf::Frequency value;
|
||||
std::string frequency_str;
|
||||
std::string description;
|
||||
rf::Frequency value { 0 };
|
||||
std::string frequency_str { };
|
||||
std::string description { };
|
||||
};
|
||||
|
||||
struct freqman_db {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue