Modify Morse code table (#2825)

Fixed morse code table
This commit is contained in:
Pezsma
2025-10-17 10:32:01 +02:00
committed by GitHub
parent 545dead1ca
commit e88ab44f49

View File

@@ -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__
#endif // __MORSEDECODER_HPP__