Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed N5110 ShiftReg PinDetect
State.cpp@4:d6661b976359, 2015-05-01 (annotated)
- Committer:
- Siriagus
- Date:
- Fri May 01 00:38:59 2015 +0000
- Revision:
- 4:d6661b976359
- Child:
- 7:678873947b29
Started rewriting the main finite state machine - design in progress
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Siriagus | 4:d6661b976359 | 1 | #include "State.h" |
| Siriagus | 4:d6661b976359 | 2 | #include "StateManager.h" |
| Siriagus | 4:d6661b976359 | 3 | |
| Siriagus | 4:d6661b976359 | 4 | // Request the fsm to change to a new state |
| Siriagus | 4:d6661b976359 | 5 | void State::changeState(MainState newState) |
| Siriagus | 4:d6661b976359 | 6 | { |
| Siriagus | 4:d6661b976359 | 7 | // Todo: Rather call a function in StateManager that postponed the change until every update is done |
| Siriagus | 4:d6661b976359 | 8 | fsm->changeState(newState); |
| Siriagus | 4:d6661b976359 | 9 | } |