I’m not as worried about your math grades as I am about the quality of your math foundation and your ability to succeed at the next level. Math is a huge part of engineering. How advanced you are and how well you grasp it are probably the two strongest indicators of future success in engineering.