From 289d1f73a86ca4c0f745d0e86ab6b4c4c974a718 Mon Sep 17 00:00:00 2001 From: Morgan Redfield Date: Mon, 4 Feb 2019 15:25:29 -0800 Subject: [PATCH] removing duration from tone calls --- src/HamShield.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/HamShield.cpp b/src/HamShield.cpp index 1c8c196..3569198 100644 --- a/src/HamShield.cpp +++ b/src/HamShield.cpp @@ -1613,11 +1613,13 @@ void HamShield::morseOut(char buffer[HAMSHIELD_MORSE_BUFFER_SIZE]) { if(bits) { // If it is a valid character... do { 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); + HSnoTone(); } else { - HStone(hs_pwm_pin, morse_freq, morse_dot_millis); + HStone(hs_pwm_pin, morse_freq);//, morse_dot_millis); HSdelay(morse_dot_millis); + HSnoTone(); } //tone(hs_pwm_pin, 6000, morse_dot_millis); HSnoTone(hs_pwm_pin); @@ -1758,8 +1760,9 @@ void HamShield::SSTVTestPattern(int code) { /* wait for tone to complete */ void HamShield::toneWait(uint16_t freq, long timer) { - HStone(hs_pwm_pin,freq,timer); + HStone(hs_pwm_pin,freq);//,timer); HSdelay(timer); + HSnoTone(); } /* wait microseconds for tone to complete */