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
Diff: State.cpp
- Revision:
- 4:d6661b976359
- Child:
- 7:678873947b29
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/State.cpp Fri May 01 00:38:59 2015 +0000
@@ -0,0 +1,9 @@
+#include "State.h"
+#include "StateManager.h"
+
+// Request the fsm to change to a new state
+void State::changeState(MainState newState)
+{
+ // Todo: Rather call a function in StateManager that postponed the change until every update is done
+ fsm->changeState(newState);
+}
\ No newline at end of file