MPU 6050 without sending character for initialize


I'm Sorry for only make questions in this forum, I'm a mess...

I'm working with the MPU 6050 code by Jeff Rosberg and I'm trying to avoid the step when the sensor ask for any character to work but I don't find a solution.

Any of you have had this problem? Can you help me?

Thank you!

code / link to code?

I finally found a solution.

If you want to avoid the step you only have to uncomment this lines:

// wait for ready //Serial.println(F("\nSend any character to begin DMP programming and demo: ")); //while (Serial.available() &&; // empty buffer //while (!Serial.available()); // wait for data //while (Serial.available() &&; // empty buffer again

The code is here: