Skip to content

Change example object name from cli to something else. #23

@fletchjp

Description

@fletchjp

Hi.

I have been using SimpleCLI and developing code from your examples. I decided to change from the default number of arguments.

SimpleCLI cli(10);

This fails on an Arduino UNO with the message:

Compilation error: macro "cli" passed 1 arguments, but takes just 0

This is because the Arduino UNO system defines a macro "cli".

The code works on and Arduino DUE.

It is possible to do

#undef cli

I think it is better to change the name of the declared object from "cli" to something else in the examples.

Thank you for your work

John Fletcher

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions