fix noTone calls

This commit is contained in:
morgan 2019-02-02 21:22:37 +00:00
parent 467765d892
commit 1b1c9b3f80
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) {
HStone(hs_pwm_pin, morse_freq); //, morse_dot_millis * 3);
HSdelay(morse_dot_millis*3);
HSnoTone();
HSnoTone(hs_pwm_pin);
} else {
HStone(hs_pwm_pin, morse_freq); //, morse_dot_millis);
HSdelay(morse_dot_millis);
HSnoTone();
HSnoTone(hs_pwm_pin);
}
//tone(hs_pwm_pin, 6000, morse_dot_millis);
HSnoTone(hs_pwm_pin);
@ -1762,7 +1762,7 @@ void HamShield::SSTVTestPattern(int code) {
void HamShield::toneWait(uint16_t freq, long timer) {
HStone(hs_pwm_pin,freq); //,timer);
HSdelay(timer);
HSnoTone();
HSnoTone(hs_pwm_pin);
}
/* wait microseconds for tone to complete */