Skip to content

Commit 612469d

Browse files
lurchkilograham
authored andcommitted
Fix condition for printing morse-code Z
Fixes #86
1 parent 849279a commit 612469d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

picoboard/blinky/blinky.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ void put_morse_letter(uint led_pin, const char *pattern) {
5454

5555
void put_morse_str(uint led_pin, const char *str) {
5656
for (; *str; ++str) {
57-
if (*str >= 'A' && *str < 'Z') {
57+
if (*str >= 'A' && *str <= 'Z') {
5858
put_morse_letter(led_pin, morse_letters[*str - 'A']);
59-
} else if (*str >= 'a' && *str < 'z') {
59+
} else if (*str >= 'a' && *str <= 'z') {
6060
put_morse_letter(led_pin, morse_letters[*str - 'a']);
6161
} else if (*str == ' ') {
6262
sleep_ms(DOT_PERIOD_MS * 4);

0 commit comments

Comments
 (0)