Skip to content

stripCR()

CreateiveRobotics edited this page Mar 7, 2020 · 2 revisions
void stripCR(bool sState)

bool stripCR()

Enable or disable the automatic removal of the Carriage Return character from incoming data. This is ON by default and is useful when using Commander with Serial terminals.

Example:

stripCR(OFF); //Disable the removal of the 'CR' character

if(stripCR()) {/*do something*/} //Check if stripping of CR is enabled, and do something if it is
Clone this wiki locally