set timer0_on to true when starts

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

@ -3171,7 +3171,7 @@ bool TimerHandler0(struct repeating_timer *t) {
void start_isr() {
// return;
if (!Timer0_on) {
if (!timer0_on) {
Serial.println("Starting ISR");
pinMode(BPSK_CONTROL_A, OUTPUT);
@ -3183,6 +3183,7 @@ void start_isr() {
// if (ITimer0.attachInterruptInterval(1667, TimerHandler0))
{
Serial.print(F("Starting ITimer0 OK, micros() = ")); Serial.println(micros());
timer0_on = true;
}
else
Serial.println(F("Can't set ITimer0. Select another Timer, freq. or timer"));

Loading…
Cancel
Save

Powered by TurnKey Linux.