beacon from 2009
[aversive.git] / projects / microb2010 / mainboard / main.c
index ce76583..f657ddf 100755 (executable)
@@ -286,10 +286,10 @@ int main(void)
        /* TIME */
        time_init(TIME_PRIO);
 
-#ifndef HOST_VERSION
        /* sensors, will also init hardware adc */
        sensor_init();
 
+#ifndef HOST_VERSION
        /* start i2c slave polling */
        scheduler_add_periodical_event_priority(i2c_poll_slaves, NULL,
                                                8000L / SCHEDULER_UNIT, I2C_POLL_PRIO);
@@ -298,8 +298,6 @@ int main(void)
        /* strat */
        gen.logs[0] = E_USER_STRAT;
        gen.log_level = 5;
-       strat_db_init();
-       test_strat_avoid();
 
        /* strat-related event */
        scheduler_add_periodical_event_priority(strat_event, NULL,
@@ -315,6 +313,8 @@ int main(void)
 
        sei();
 
+       strat_db_init();
+
        printf_P(PSTR("\r\n"));
        printf_P(PSTR("Respect et robustesse.\r\n"));
 #ifndef HOST_VERSION