return in transmit_char

pico-v0.1
alanbjohnston 3 years ago committed by GitHub
parent ab29cc5bea
commit 2b00052e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3357,9 +3357,11 @@ void transmit_string(char *string) {
}
void transmit_char(char character) {
Serial.println("transmit_char");
return;
int i = 0;
while ((morse_table[(toupper(character) - '0') % 44][i] != 0) && (i < 5)) {
transmit_mili(morse_freq, morse_table[(toupper(character) - '0') % 44][i++] * morse_timing);
transmit_mili(morse_freq, morse_table[(toupper(character) - '0') % 44][i++] * morse_timing);
sleep(morse_timing/1000);
}
}

Loading…
Cancel
Save

Powered by TurnKey Linux.