ParentFull threadarinlen·> Function pointers as state machines has been a favorite trick of mine for very embedded C stuff. Each function sets the next state function.This is the basis of OO's State pattern.https://en.wikipedia.org/wiki/State_patternView on HN