From 57a0955857961a87b092724eef61e351629474b1 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 9 Dec 2022 13:40:47 -0500 Subject: [PATCH] added start flag detected print --- cubesatsim/play_pwm.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cubesatsim/play_pwm.cpp b/cubesatsim/play_pwm.cpp index 9307b89d..a08778a2 100644 --- a/cubesatsim/play_pwm.cpp +++ b/cubesatsim/play_pwm.cpp @@ -380,10 +380,12 @@ int led_pin = LED_BUILTIN; while ((!finished) && ((millis() - time_start) < SERIAL2_TIMEOUT)) { if (Serial2.available()) { // If anything comes in Serial2 - byte octet = Serial2.read(); + byte octet = Serial2.read(); + if (index1 == 2) + Serial.println("Start flag detected"); if (start_flag_complete) { -// Serial.println("Start flag complete detected"); + Serial.println("Start flag complete detected"); // buffer2[index1++] = octet; i.write(&octet, 1); index1++;