sm1000_main: Clean up main loop state machine.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 24 Oct 2015 23:13:10 +0000 (23:13 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 24 Oct 2015 23:13:10 +0000 (23:13 +0000)
commit561b81317d001d680304fdd9dc54305869206ea3
treeb46ea982816cf32daf7321d05fe60e036c50d17b
parentdd9679ecc9777a094591b4779ce32e61dd36b0dd
sm1000_main: Clean up main loop state machine.

Rather than testing the switch states in multiple places, we test in one
place and then act based on the state of the state machine rather than
the switches directly.

git-svn-id: https://svn.code.sf.net/p/freetel/code@2471 01035d8c-6547-0410-b346-abe4f91aad63
codec2-dev/stm32/src/sm1000_main.c