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
@@ -298,8 +298,8 @@ class MorseDecoder {
time_unit_ms_ = (time_unit_ms_ * (1.0 - learning_factor)) + (new_time_unit * learning_factor); time_unit_ms_ = (time_unit_ms_ * (1.0 - learning_factor)) + (new_time_unit * learning_factor);
} }
size_t morse_table_size_ = 42; size_t morse_table_size_ = 41;
MorseEntry morse_table_[42] = { MorseEntry morse_table_[41] = {
{".-", "A"}, {".-", "A"},
{"-...", "B"}, {"-...", "B"},
{"-.-.", "C"}, {"-.-.", "C"},
@@ -337,10 +337,9 @@ class MorseDecoder {
{"----.", "9"}, {"----.", "9"},
{"-----", "0"}, {"-----", "0"},
{".-.-.-", "."}, {".-.-.-", "."},
{"--..-", "?"},
{"..--..", "?"}, {"..--..", "?"},
{"-.-.--", "!"}, {"-.-.--", "!"},
{"--..-.", ","}, {"--..--", ","},
{"-...-", "="}}; {"-...-", "="}};
}; };