only program SR_FRS if present

pico-sr
alanbjohnston 3 years ago committed by GitHub
parent 36abf257a9
commit 37e37625c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3880,7 +3880,7 @@ void transmit_callsign(char *callsign) {
Serial.println("Config clock for CW without SR_FRS"); Serial.println("Config clock for CW without SR_FRS");
} }
digitalWrite(PD_PIN, LOW); // disable SR_FRS digitalWrite(PD_PIN, LOW); // disable SR_FRS
clockgen.enableOutputs(true); clockgen.enableOutputs(false);
digitalWrite(BPSK_CONTROL_B, LOW); digitalWrite(BPSK_CONTROL_B, LOW);
digitalWrite(BPSK_CONTROL_A, LOW); digitalWrite(BPSK_CONTROL_A, LOW);
} }
@ -4455,7 +4455,7 @@ void set_lat_lon() {
} }
void program_radio() { void program_radio() {
if (sr_frs_present) {
Serial.println("Programming SR_FRS!"); Serial.println("Programming SR_FRS!");
digitalWrite(PD_PIN, HIGH); // enable SR_FRS digitalWrite(PD_PIN, HIGH); // enable SR_FRS
@ -4475,6 +4475,7 @@ void program_radio() {
sleep(0.5); sleep(0.5);
mySerial.println("AT+DMOSETMIC=8,0\r"); // was 8 mySerial.println("AT+DMOSETMIC=8,0\r"); // was 8
}
} }
digitalWrite(PD_PIN, LOW); // disable SR_FRS digitalWrite(PD_PIN, LOW); // disable SR_FRS
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.