Skip to content

Commit bee0d5b

Browse files
committed
Fix Arduino callback example
1 parent affb874 commit bee0d5b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • examples/arduino/basic_usage_callbacks/src

examples/arduino/basic_usage_callbacks/src/main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@
5959

6060
/* Global Elements */
6161

62-
static MINBASECLI Cli;
63-
64-
static volatile bool exit = false;
62+
MINBASECLI Cli;
6563

6664
/*****************************************************************************/
6765

@@ -93,7 +91,7 @@ void setup()
9391
Cli.setup(&Serial);
9492

9593
// Add commands and bind callbacks to them
96-
Cli.add_cmd("led", &cmd_test, "led [on/off], Turn LED ON or OFF..");
94+
Cli.add_cmd("led", &cmd_led, "led [on/off], Turn LED ON or OFF..");
9795
Cli.add_cmd("version", &cmd_version, "Shows current firmware version.");
9896

9997
// The "help" command is already builtin and available from the CLI, and it

0 commit comments

Comments
 (0)