keep PD low until AFSK is selected

pico-v0.1
alanbjohnston 3 years ago committed by GitHub
parent 21a4bfa739
commit 93cdf1c0ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -173,8 +173,10 @@ void send_packet() {
}
void transmit_on() {
if (mode == AFSK) {
digitalWrite(MAIN_LED_BLUE, HIGH);
digitalWrite(PTT_PIN, LOW);
}
}
void transmit_off() {
@ -1733,11 +1735,15 @@ void config_radio()
digitalWrite(PTT_PIN, HIGH);
pinMode(PD_PIN, OUTPUT); // PD active HIGH
digitalWrite(PD_PIN, HIGH);
digitalWrite(PD_PIN, LOW);
pinMode(TEMPERATURE_PIN, INPUT);
pinMode(AUDIO_IN_PIN, INPUT);
if (mode == AFSK) {
digitalWrite(PD_PIN, HIGH); // Enable SR_FRS
DumbTXSWS mySerial(SWTX_PIN); // TX pin
mySerial.begin(9600);
@ -1750,7 +1756,7 @@ void config_radio()
// mySerial.println("AT+DMOSETMIC=6,0\r");
}
if (mode == FSK) {
} else if (mode == FSK) {
transmit_on();
} else if (mode == BPSK) {
start_pwm();

Loading…
Cancel
Save

Powered by TurnKey Linux.