From e88ab44f49646fe8cc3debb41a9da7a7f8cef8c2 Mon Sep 17 00:00:00 2001 From: Pezsma <159525557+Pezsma@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:32:01 +0200 Subject: [PATCH] Modify Morse code table (#2825) Fixed morse code table --- .../application/external/morse_practice/morsedecoder.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/firmware/application/external/morse_practice/morsedecoder.hpp b/firmware/application/external/morse_practice/morsedecoder.hpp index 6ebaf8dd9..4e1058f04 100644 --- a/firmware/application/external/morse_practice/morsedecoder.hpp +++ b/firmware/application/external/morse_practice/morsedecoder.hpp @@ -298,8 +298,8 @@ class MorseDecoder { time_unit_ms_ = (time_unit_ms_ * (1.0 - learning_factor)) + (new_time_unit * learning_factor); } - size_t morse_table_size_ = 42; - MorseEntry morse_table_[42] = { + size_t morse_table_size_ = 41; + MorseEntry morse_table_[41] = { {".-", "A"}, {"-...", "B"}, {"-.-.", "C"}, @@ -337,13 +337,12 @@ class MorseDecoder { {"----.", "9"}, {"-----", "0"}, {".-.-.-", "."}, - {"--..-", "?"}, {"..--..", "?"}, {"-.-.--", "!"}, - {"--..-.", ","}, + {"--..--", ","}, {"-...-", "="}}; }; } // namespace ui::external_app::morse_practice -#endif // __MORSEDECODER_HPP__ \ No newline at end of file +#endif // __MORSEDECODER_HPP__