From ada84481a9615015362eccd5f59917cf9f00d143 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 11 Jul 2022 13:32:36 -0400 Subject: [PATCH] Update cubesatsim.ino --- cubesatsim/cubesatsim.ino | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index b65391a3..9d43acb7 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -2713,17 +2713,15 @@ bool TimerHandler0(struct repeating_timer *t) { // Serial.print(" "); tx_bit = (buffer[wav_position] > 0) ? HIGH: LOW; - - if (tx_bit) - Serial.print("-"); - else - Serial.print("_"); - + digitalWrite(AUDIO_OUT_PIN, tx_bit); tx_bit = (buffer[wav_position++] > 0) ? true: false; /* - + if (tx_bit) + Serial.print("-"); + else + Serial.print("_"); */ pwm_config_set_output_polarity( &config, tx_bit, tx_bit); pwm_init(bpsk_pin_slice, &config, true);