Recommendations for Efficient Code To increase the efficiency of your code, it is recommended that you: ● Avoid redundant intermediate states (i.e., not persistent states). ● Avoid duplication of code segments - use functions or defined actions instead of hard-coded duplicates. ● For a simple single state with self-transition scheduling some operation, use a static reaction or an ISR. ● Use state hierarchy to represent priorities.
To increase the efficiency of your code, it is recommended that you: