diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 143ab2d2..fc72fb92 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -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(); } } /*