stock mbed AnalogReads current loop closed and working

Dependencies:   mbed

Fork of priustroller_2 by N K

Revision:
46:bd39f7e6e37f
Parent:
42:e4f35ff78d91
Child:
49:0603121a0538
--- a/context.cpp	Thu Apr 16 23:20:24 2015 +0000
+++ b/context.cpp	Thu Apr 16 23:31:43 2015 +0000
@@ -77,9 +77,9 @@
 }
 
 void Context::Start() {
-    if (_time_upd_ticker == NULL) return;
+    InitData();
     
-    InitData();
+    if (_time_upd_ticker == NULL) return;
     
     for (;;) {
         for (int i = 0; i < _index; i++) {