From 1b1c9b3f80141a77af5ac3504b7370ac4e93a13d Mon Sep 17 00:00:00 2001 From: morgan Date: Sat, 2 Feb 2019 21:22:37 +0000 Subject: [PATCH] fix noTone calls --- src/HamShield.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/HamShield.cpp b/src/HamShield.cpp index 20c15ef..b9f6354 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 */