From 1b18b3ac45cf6287216a4d2238ddd5b420d12820 Mon Sep 17 00:00:00 2001 From: GullCode Date: Thu, 4 May 2023 15:19:13 +0200 Subject: [PATCH] fixing limit so we can detect if a list is the same size as the limit or truncated --- firmware/application/freqman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/application/freqman.cpp b/firmware/application/freqman.cpp index 413388c3c..63a900505 100644 --- a/firmware/application/freqman.cpp +++ b/firmware/application/freqman.cpp @@ -229,7 +229,7 @@ bool load_freqman_file_ex(std::string& file_stem, freqman_db& db, bool load_freq { db.push_back({ frequency_a, frequency_b, description, type , modulation , bandwidth , step , tone }); n++; - if (n >= FREQMAN_MAX_PER_FILE) return true; + if (n > FREQMAN_MAX_PER_FILE) return true; } line_start = line_end + 1;