Even better instead of a interrupt driven state machine implemented as a switch statement that linearly progresses. Do it using 20-25 small chained callbacks spread over a couple of files.
Bonus: Uncle Bob teaches us not to use comments.
Bonus: Uncle Bob teaches us not to use comments.