ErriezSerialTerminal icon indicating copy to clipboard operation
ErriezSerialTerminal copied to clipboard

Add case insensitive commands

Open ark- opened this issue 3 years ago • 2 comments

It would be nice if the command string wasn't case sensitive.

Something along the lines of adding it as an OPTIONAL parameter to addCommand().

This could be implemented by using strupr() or strlwr() in addCommand() when adding to the _commandList . Then use the same (lower or upper) function in the readSerial() function. Specifically here: https://github.com/Erriez/ErriezSerialTerminal/blob/a9f8a8bbe159ae85ad868b84fe4207fa29629052/src/ErriezSerialTerminal.cpp#L146

The conversion would only be carried out if configured to do so.

ark- avatar May 26 '21 15:05 ark-