From 250dd330b795089d70bf97c4a97d6fecc5f09b4f Mon Sep 17 00:00:00 2001 From: Morgan Redfield Date: Mon, 4 Feb 2019 17:41:35 -0800 Subject: [PATCH] noTone bugfixes --- src/HamShield.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HamShield.cpp b/src/HamShield.cpp index 3569198..1757601 100644 --- a/src/HamShield.cpp +++ b/src/HamShield.cpp @@ -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 */