2400 baud optimisations

This commit is contained in:
Mark Qvist 2019-01-29 21:58:35 +01:00
parent 532e440a3d
commit 07b589fe3f
6 changed files with 55 additions and 35 deletions

View file

@ -601,8 +601,11 @@ void AFSK_adc_isr(Afsk *afsk, int8_t currentSample) {
}
uint8_t timed_functions_timer = 0;
inline void timed_functions(void) {
if (_clock % CLOCK_TICKS_PER_10_MS == 0) {
timed_functions_timer++;
if (timed_functions_timer >= CLOCK_TICKS_PER_10_MS) {
timed_functions_timer = 0;
sd_scheduler();
}
}