added busy_wait_at_least_cycles(65) for 500 ns

pull/186/head
alanbjohnston 3 years ago committed by GitHub
parent a169ced6af
commit 887e74c00b
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) < 833) { }
while ((micros() - micro_timer2) < 832) { }
busy_wait_at_least_cycles(65);
if ((micros() - micro_timer2) > 834)
Serial.println(micros() - micro_timer2);
micro_timer2 = micros();

Loading…
Cancel
Save

Powered by TurnKey Linux.