|
|
|
|
@ -3461,10 +3461,10 @@ bool TimerHandler0(struct repeating_timer *t) {
|
|
|
|
|
// Serial.print("\nR");
|
|
|
|
|
// Serial.print(" ");
|
|
|
|
|
// Serial.println(millis());
|
|
|
|
|
// if (debug_mode) {
|
|
|
|
|
if (bufLen != 0) {
|
|
|
|
|
Serial.print("R Microseconds: ");
|
|
|
|
|
Serial.println((float)(micros() - micro_timer)/(float)bufLen);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
micro_timer = micros();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -3490,7 +3490,7 @@ void start_isr() {
|
|
|
|
|
|
|
|
|
|
// if (ITimer0.attachInterruptInterval(833, TimerHandler0))
|
|
|
|
|
// if (ITimer0.attachInterruptInterval(804, TimerHandler0))
|
|
|
|
|
if (ITimer0.attachInterruptInterval(828, TimerHandler0)) // was was 827 and 828
|
|
|
|
|
if (ITimer0.attachInterruptInterval(820, TimerHandler0)) // was was 828 (841) and 828
|
|
|
|
|
// if (ITimer0.attachInterruptInterval(1667, TimerHandler0))
|
|
|
|
|
{
|
|
|
|
|
if (debug_mode)
|
|
|
|
|
|