The read functions have a mpu9150_results_t* argument which is a struct with 3 int16_t members. Thus we should cast res->val instead of just res.
The read functions have a mpu9150_results_t* argument which is a struct with 3 int16_t members. Thus we should cast res->val instead of just res.