noTone bugfixes

This commit is contained in:
Morgan Redfield 2019-02-04 17:41:35 -08:00
parent 289d1f73a8
commit 250dd330b7
1 changed files with 3 additions and 3 deletions

View File

@ -1615,11 +1615,11 @@ void HamShield::morseOut(char buffer[HAMSHIELD_MORSE_BUFFER_SIZE]) {
if(bits & 1) { if(bits & 1) {
HStone(hs_pwm_pin, morse_freq);//, morse_dot_millis * 3); HStone(hs_pwm_pin, morse_freq);//, morse_dot_millis * 3);
HSdelay(morse_dot_millis*3); HSdelay(morse_dot_millis*3);
HSnoTone(); HSnoTone(hs_pwm_pin);
} else { } else {
HStone(hs_pwm_pin, morse_freq);//, morse_dot_millis); HStone(hs_pwm_pin, morse_freq);//, morse_dot_millis);
HSdelay(morse_dot_millis); HSdelay(morse_dot_millis);
HSnoTone(); HSnoTone(hs_pwm_pin);
} }
//tone(hs_pwm_pin, 6000, morse_dot_millis); //tone(hs_pwm_pin, 6000, morse_dot_millis);
HSnoTone(hs_pwm_pin); HSnoTone(hs_pwm_pin);
@ -1762,7 +1762,7 @@ void HamShield::SSTVTestPattern(int code) {
void HamShield::toneWait(uint16_t freq, long timer) { void HamShield::toneWait(uint16_t freq, long timer) {
HStone(hs_pwm_pin,freq);//,timer); HStone(hs_pwm_pin,freq);//,timer);
HSdelay(timer); HSdelay(timer);
HSnoTone(); HSnoTone(hs_pwm_pin);
} }
/* wait microseconds for tone to complete */ /* wait microseconds for tone to complete */