Update cubesatsim.ino

pull/161/head
alanbjohnston 4 years ago committed by GitHub
parent 846cdf152b
commit ada84481a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2714,16 +2714,14 @@ bool TimerHandler0(struct repeating_timer *t) {
tx_bit = (buffer[wav_position] > 0) ? HIGH: LOW; tx_bit = (buffer[wav_position] > 0) ? HIGH: LOW;
if (tx_bit)
Serial.print("-");
else
Serial.print("_");
digitalWrite(AUDIO_OUT_PIN, tx_bit); digitalWrite(AUDIO_OUT_PIN, tx_bit);
tx_bit = (buffer[wav_position++] > 0) ? true: false; 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_config_set_output_polarity( &config, tx_bit, tx_bit);
pwm_init(bpsk_pin_slice, &config, true); pwm_init(bpsk_pin_slice, &config, true);

Loading…
Cancel
Save

Powered by TurnKey Linux.