Automaton: Triggering event from inside Machine::action causes silent crash on Arduino Mega

Here’s the offending code:

void Atm_machine::action( int id ) {
  switch ( id ) {
    case LP_STATE:
      otherMachine.event_function();
      return;
    case OTHER_STATE:
      return;
  }
}

My Arduino just silently restarts when I do this.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

It’s on line. Thanks again!

Yeah sure, I’m happy to have helped. Thanks for being open-minded! 😃

@00benallen Nothing serious, but the author of this framework is a busy man and he’s developing this library free of charge and in his free time. Bumping a thread just two days after your last message is not constructive - he will look at your contribution when he can, there’s no need to remind him about it. It also pollutes the thread with that type of messages. In other words, give him some slack. That’s why I thumbed down 😃