only do BPSK in isr if in BPSK mode

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

@ -2763,6 +2763,8 @@ void config_gpio() {
bool TimerHandler0(struct repeating_timer *t) {
if (mode == BPSK) { // only do this if BPSK mode. Should turn off timer interrupt when not BPSK in future
// Serial.print("l1 ");
// Serial.print(wav_position);
// Serial.print(" ");
@ -2803,12 +2805,14 @@ bool TimerHandler0(struct repeating_timer *t) {
Serial.println((micros() - micro_timer)/bufLen);
micro_timer = micros();
}
}
/*
if (digitalRead(MAIN_PB_PIN) == PRESSED) // pushbutton is pressed
process_pushbutton();
if (BOOTSEL) // boot selector button is pressed on Pico
process_bootsel();
*/
return true;
}

Loading…
Cancel
Save

Powered by TurnKey Linux.