Skip to content

Transition to any state #13

@krzychoooo

Description

@krzychoooo

this code work ok

void loop() {
  machine.run();
  machine.transitionTo(S4);
  delay(STATE_DELAY);
}

but this code not work

void state0(){
  Serial.println("State 0");
  if(machine.executeOnce){
    Serial.println("Execute Once");
    digitalWrite(LED,!digitalRead(LED));
  }
  machine.transitionTo(S4);    //**problem**
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions