Added back in the tone waits in morseOut.
This commit is contained in:
parent
fc09429133
commit
0fd2d484e1
|
@ -1285,11 +1285,14 @@ void HamShield::morseOut(char buffer[HAMSHIELD_MORSE_BUFFER_SIZE]) {
|
||||||
uint8_t bits = morseLookup(buffer[i]);
|
uint8_t bits = morseLookup(buffer[i]);
|
||||||
if(bits) { // If it is a valid character...
|
if(bits) { // If it is a valid character...
|
||||||
do {
|
do {
|
||||||
if(bits & 1)
|
if(bits & 1) {
|
||||||
tone(HAMSHIELD_PWM_PIN, 1000, HAMSHIELD_MORSE_DOT * 3);
|
tone(HAMSHIELD_PWM_PIN, 1000, HAMSHIELD_MORSE_DOT * 3);
|
||||||
else
|
delay(HAMSHIELD_MORSE_DOT*3);
|
||||||
|
} else {
|
||||||
tone(HAMSHIELD_PWM_PIN, 1000, HAMSHIELD_MORSE_DOT);
|
tone(HAMSHIELD_PWM_PIN, 1000, HAMSHIELD_MORSE_DOT);
|
||||||
delay(HAMSHIELD_MORSE_DOT);
|
delay(HAMSHIELD_MORSE_DOT);
|
||||||
|
}
|
||||||
|
delay(HAMSHIELD_MORSE_DOT);
|
||||||
bits >>= 1; // Shift into the next symbol
|
bits >>= 1; // Shift into the next symbol
|
||||||
} while(bits != 1); // Wait for 1 termination to be all we have left
|
} while(bits != 1); // Wait for 1 termination to be all we have left
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue