From 1deebaff090df3e32335048ad76584bf8d5f769f Mon Sep 17 00:00:00 2001 From: GullCode Date: Thu, 4 May 2023 12:09:42 +0200 Subject: [PATCH] fixing freqman limits --- firmware/application/freqman.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/firmware/application/freqman.hpp b/firmware/application/freqman.hpp index 57906cde..5b011f5f 100644 --- a/firmware/application/freqman.hpp +++ b/firmware/application/freqman.hpp @@ -31,9 +31,10 @@ #include "string_format.hpp" #include "ui_widget.hpp" -#define FREQMAN_DESC_MAX_LEN 30 -#define FREQMAN_MAX_PER_FILE 500 /* MAX PER FILES */ -#define FREQMAN_MAX_PER_FILE_STR "500" /*STRING OF FREQMAN_MAX_PER_FILE */ +#define FREQMAN_DESC_MAX_LEN 24 // This is the number of characters that can be drawn in front of "R: TEXT..." before taking a full screen line +#define FREQMAN_MAX_PER_FILE 115 // Maximum of entries we can read. This is a hardware limit + // It was tested and lowered to leave a bit of space to the caller +#define FREQMAN_MAX_PER_FILE_STR "115" // STRING OF FREQMAN_MAX_PER_FILE using namespace ui; using namespace std;