move config_telem up in change mode

pico-v0.33-debug
alanbjohnston 3 years ago committed by GitHub
parent 4edcfaebb1
commit 5935bedb2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -328,11 +328,12 @@ void loop() {
/// start_button_isr(); // restart button isr /// start_button_isr(); // restart button isr
/// } /// }
mode = new_mode; // change modes if button pressed mode = new_mode; // change modes if button pressed
write_mode(); write_mode();
config_telem();
if (new_mode != CW) if (new_mode != CW)
transmit_callsign(callsign); transmit_callsign(callsign);
sleep(0.5); sleep(0.5);
config_telem(); /// config_telem();
config_radio(); config_radio();
if ((mode == FSK) || (mode == BPSK)) { if ((mode == FSK) || (mode == BPSK)) {
digitalWrite(LED_BUILTIN, HIGH); digitalWrite(LED_BUILTIN, HIGH);

Loading…
Cancel
Save

Powered by TurnKey Linux.