Last active
June 19, 2019 18:12
-
-
Save dheeptuck/c0623ce922147bb100e8de84e96f2e7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void stateIdle(); | |
void stateCrushBean(); | |
void stateHeatMilk(); | |
void stateMixWater(); | |
void stateDispenseCofee(); | |
void stateError(); | |
void stateCrushBean(void) | |
{ | |
if(bIsStateFirstEntry) | |
{ | |
/// Do stuff for first entry(state initialization stuff) | |
/// TurnHeaterOn(); | |
} | |
if(bIsStateAboutToExit) | |
{ | |
/// Handle exit(i.e free up resources) | |
/// TurnHeaterOff(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment