Skip to content

Commit

Permalink
Fixes #30
Browse files Browse the repository at this point in the history
  • Loading branch information
p6laris committed Feb 9, 2024
1 parent 60177e8 commit 7391bb3
Show file tree
Hide file tree
Showing 4 changed files with 674 additions and 672 deletions.
2 changes: 1 addition & 1 deletion MorseSharp/Audio/AudioConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private Span<short> GetCharacter(string morseSymbol)
{
if (i > 0)
data.AddRange(GetEleCharSpace());
if (morseSymbol[i] == '_')
if (morseSymbol[i] == '-')
data.AddRange(GetDash());
else if (morseSymbol[i] == '.')
data.AddRange(GetDot());
Expand Down
2 changes: 1 addition & 1 deletion MorseSharp/Light/LightBlinker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private async Task GetCharacterDurations(string morseSymbol)
{
if (i > 0)
await GetElementCharDurationAsync();
if (morseSymbol[i] == '_')
if (morseSymbol[i] == '-')
await GetDashDurationAsync();
else if (morseSymbol[i] == '.')
await GetDotDurationAsync();
Expand Down
Loading

0 comments on commit 7391bb3

Please sign in to comment.