added setInterval for ISR when change between FSK and BPSK modes

pull/206/head
alanbjohnston 3 years ago committed by GitHub
parent cbe388a787
commit 57edfc8ed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2114,13 +2114,29 @@ void config_radio()
} else if (mode == BPSK) {
// start_pwm();
// start_isr();
clockgen.setClockBPSK();
clockgen.setClockBPSK();
if (ITimer0.setInterval(delay_time - 32, TimerHandler0))
{
if (debug_mode)
Serial.print(F("Reseting ITimer0 OK, micros() = ")); Serial.println(micros());
}
else
Serial.println(F("Can't reset ITimer0. Select another Timer, freq. or timer"));
transmit_on();
}
if ((mode == FSK)) // || (mode == SSTV))
// start_isr();
clockgen.setClockFSK();
clockgen.setClockFSK();
if (ITimer0.setInterval(delay_time - 32, TimerHandler0))
{
if (debug_mode)
Serial.print(F("Reseting ITimer0 OK, micros() = ")); Serial.println(micros());
}
else
Serial.println(F("Can't reset ITimer0. Select another Timer, freq. or timer"));
transmit_on();
}

Loading…
Cancel
Save

Powered by TurnKey Linux.