Automaton Command machine not working

mgbtp

Member
I have added an Atm_command machine to my sketch but when I type some characters into the monitor input field, nothing happens. I have used

#include <Automaton.h>

char cmd_buffer[80];
const char cmdlist[] = "s o";

Atm_command cmd;

in setup:
cmd.begin(Serial, cmd_buffer, sizeof(cmd_buffer))
.list( cmdlist )
.onCommand(command_message);

after setup:
void command_message(int idv, int v, int up) {
Serial.print( F("Command ") );
Serial.println(cmd_buffer);
Serial.println(cmd_buffer[0]);

Have I missed somthing?
 
Back
Top