From 3bcb99ef1792be22cee3c309d04465fd1fc7ba0f Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 8 Dec 2022 09:03:22 -0500 Subject: [PATCH] Update play_pwm.cpp --- cubesatsim/play_pwm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cubesatsim/play_pwm.cpp b/cubesatsim/play_pwm.cpp index 6416c54b..c32c854c 100644 --- a/cubesatsim/play_pwm.cpp +++ b/cubesatsim/play_pwm.cpp @@ -387,7 +387,8 @@ int led_pin = LED_BUILTIN; // buffer2[index1++] = octet; i.write(&octet, 1); index1++; - + Serial.write(octet); // print octet from Serial2 + if (octet == end_flag[flag_count]) { // looking for end flag // if (end_flag_detected) { flag_count++;