moved while

pull/186/head
alanbjohnston 3 years ago committed by GitHub
parent 9b7eb98a9b
commit dc744185af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3428,7 +3428,8 @@ bool TimerHandler0(struct repeating_timer *t) {
// Serial.print("l1 ");
// Serial.print(wav_position);
// Serial.print(" ");
while ((micros() - micro_timer2) < 832) { }
micro_timer2 = micros();
if (buffer[wav_position++] > 0) {
digitalWrite(BPSK_CONTROL_A, HIGH);
// delayMicroseconds(2);
@ -3469,8 +3470,8 @@ bool TimerHandler0(struct repeating_timer *t) {
} else {
/// Serial.print("R' Microseconds: ");
/// Serial.println(micros() - micro_timer2);
while ((micros() - micro_timer2) < 832) { }
micro_timer2 = micros();
// while ((micros() - micro_timer2) < 832) { }
// micro_timer2 = micros();
}
}
/*

Loading…
Cancel
Save

Powered by TurnKey Linux.