rhj4:
void loop()
{
commands->processCommandInput();
if (commands->commandsToBeProcessed() > 0) {
cmd = commands->getQueuedCommand();
executeCommand(cmd); <<<-- ERROR HERE
}
delay(100);
}
void executeCommand(Commands::command cmd) {
Serial.println("Processing Command");
}
every line dereferences a pointer called commands, that is... except for here:
executeCommand(cmd); <<<-- ERROR HERE
try:
commands->executeCommand(cmd);