learn-more-python-the-hard-way-solutions
learn-more-python-the-hard-way-solutions copied to clipboard
Minor bug fixes - ex30 fsm solution
Hi there, really enjoyed the FSM chapter and exercise.
I have two minor bug fixes to propose for the solution to ex 30:
- state functions which were meant to be returning the result of a function call weren't being called correctly
- the test function wasn't initialising the starting state, resulting in the FSM reaching an error state incorrectly when it should have finished in the connected state
Many thanks,
Cormac