Skip to content

Add case insensitive commands #5

Description

@ark-

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:

if (strncmp(command, _commandList[i].command, ST_NUM_COMMAND_CHARS) == 0) {

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions