some cleaning of imu
[protos/imu.git] / main.c
diff --git a/main.c b/main.c
index a1d6af1..8f0f7ed 100644 (file)
--- a/main.c
+++ b/main.c
@@ -167,18 +167,18 @@ int main(void)
        /* communication with mpu6050 */
        i2cm_init();
 
-       /* i2c hw with mainboard */
+       /* i2c hw to communicate with mainboard */
        i2c_init(I2C_MODE_SLAVE, I2C_IMUBOARD_ADDR);
        i2c_protocol_init();
        i2c_register_recv_event(i2c_recvevent);
        i2c_register_send_event(i2c_sendevent);
 
-       sei();
-
        eeprom_load_config();
 
        sd_log_open();
 
+       sei();
+
        printf_P(PSTR("\r\n"));
        rdline_newline(&imuboard.rdl, imuboard.prompt);