From 79fd8135dc2b54395aa31c7178489daa3c5c85e1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 1 Sep 2022 13:58:35 -0400 Subject: [PATCH] only print when > 833 --- cubesatsim/cubesatsim.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index d2bc5d59..b218dce2 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -3429,7 +3429,8 @@ bool TimerHandler0(struct repeating_timer *t) { // Serial.print(wav_position); // Serial.print(" "); while ((micros() - micro_timer2) < 832) { } - Serial.println(micros() - micro_timer2); + if ((micros() - micro_timer2) > 833) + Serial.println(micros() - micro_timer2); micro_timer2 = micros(); if (buffer[wav_position++] > 0) { digitalWrite(BPSK_CONTROL_A, HIGH);