Skip to content

Led_Init() never called upon initialization #1

Open
@faststoff

Description

@faststoff

StateMachine_Init() should ensure the function associated with the initialization state (ie. Led_Init()) get called. Now, the first function which gets called is the Led_Idle() function. Suggested change:

void StateMachine_Init(stateMachine_t * stateMachine) {
    printf("Initialising state machine.\r\n");
    stateMachine->currState = ST_INIT;
   (stateFunctionA[stateMachine->currState].func)(); //call initialization function
}

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