Skip to content

Commit adb7820

Browse files
committed
VCT: Properly order the output by emptying buffered output
1 parent 24b9571 commit adb7820

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Firmware/Tools/VcServerTest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ typedef enum
129129
//Connect to the remote radio
130130
CMD_AT_CMDVC, //Select target VC
131131
CMD_ATC, //Start the 3-way handshake
132+
132133
CMD_WAIT_CONNECTED, //Wait until the client is connected
133134

134135
//Get remote radio connection status, type and ID
@@ -470,6 +471,7 @@ int hostToStdout(VC_SERIAL_MESSAGE_HEADER * header, uint8_t * data, uint8_t byte
470471
//Write this data to stdout
471472
bytesSent = 0;
472473
status = 0;
474+
fflush(stdout);
473475
while (bytesSent < bytesToSend)
474476
{
475477
bytesWritten = write(STDOUT, &data[bytesSent], bytesToSend - bytesSent);

0 commit comments

Comments
 (0)