diff --git a/src/keyer.cpp b/src/keyer.cpp index 25e2dda..a966e56 100644 --- a/src/keyer.cpp +++ b/src/keyer.cpp @@ -36,7 +36,7 @@ uint64_t calcElementDurationUs(uint8_t wpm) return duration; } -Keyer::Keyer(uint8_t wpm, Mode mode) : m_wpm(wpm), m_mode(mode), m_buzzer(BUZZER_PIN), m_audioOut(AUDIO_OUT_PIN) +Keyer::Keyer(uint8_t wpm, Mode mode) : m_wpm(wpm), m_mode(mode), m_buzzer(BUZZER_PIN) //, m_audioOut(AUDIO_OUT_PIN) { m_elementDuration = calcElementDurationUs(m_wpm); } @@ -93,7 +93,7 @@ void Keyer::run() gpio_put(LED_PIN, 1); gpio_put(CW_OUT_PIN, 1); m_buzzer.on(SIDETONE_FREQ); - m_audioOut.on(SIDETONE_FREQ); + //m_audioOut.on(SIDETONE_FREQ); } else { // If right paddle üressed -> note for Iambic B if (right_paddle_pressed() && !m_keyNextIambicB) { @@ -105,7 +105,7 @@ void Keyer::run() gpio_put(LED_PIN, 0); gpio_put(CW_OUT_PIN, 0); m_buzzer.off(); - m_audioOut.off(); + //m_audioOut.off(); m_previousState = State::Dit; m_state = State::DitPause; } @@ -118,7 +118,7 @@ void Keyer::run() gpio_put(LED_PIN, 1); gpio_put(CW_OUT_PIN, 1); m_buzzer.on(SIDETONE_FREQ); - m_audioOut.on(SIDETONE_FREQ); + //m_audioOut.on(SIDETONE_FREQ); } else { // If left paddle pressed -> Note for Iambic B if (left_paddle_pressed() && !m_keyNextIambicB) { @@ -130,7 +130,7 @@ void Keyer::run() gpio_put(LED_PIN, 0); gpio_put(CW_OUT_PIN, 0); m_buzzer.off(); - m_audioOut.off(); + //m_audioOut.off(); m_previousState = State::Dah; m_state = State::DahPause; } @@ -180,7 +180,7 @@ void Keyer::run() gpio_put(LED_PIN, 0); gpio_put(CW_OUT_PIN, 0); m_buzzer.off(); - m_audioOut.off(); + //m_audioOut.off(); m_keyNextIambicB = false; m_currentlyPausing = false; m_currentlyKeying = false; diff --git a/src/keyer.h b/src/keyer.h index 893a038..1db70ac 100644 --- a/src/keyer.h +++ b/src/keyer.h @@ -32,7 +32,7 @@ class Keyer final absolute_time_t m_pausing_until {0}; Sidetone m_buzzer; - Sidetone m_audioOut; + //Sidetone m_audioOut; State m_state {State::Wait}; State m_previousState {State::Wait};