Sensoray 2600 User Manual
Page 77
Advertising
Sensoray 2600 Programming Guide
73
Comport Transaction Functions
// Received a bad character, so we must flush the receive buffer.
printf( "Character receive error.\n" );
S26_ComFlush( 0, 1, 1000, 1 );
}
else
{
// All is OK, so process the received string.
RcvBuf[BufLen] = 0;
// Append null to end of character string.
printf( "%s\n", RcvBuf );
// Display the string.
}
Advertising