From 9edeb531df4cfe319f5cc8939477a0640e482a4c Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Fri, 16 Dec 2022 22:21:03 -0500 Subject: [PATCH] alternate with all 1's --- cubesatsim/cubesatsim.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 173ff180..5340db19 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -1414,7 +1414,11 @@ void get_tlm_fox() { //void write_wave(int i, short int *buffer) void write_wave(int i, byte *buffer) { + if ((loop_count % 2) == 0) buffer[ctr++] = (byte)(phase == 1); + else + buffer[ctr++] = 1; + // Serial.printf("buffer is %d \n", buffer[ctr - 1]); // Serial.print(ctr); // Serial.print(" ");