There was a bug where the new interface for retrieving ADC data was not actually returning anything. This PR fixes that
Notes
The main problem is that in the init function for the mpu struct, we were returning a 0, not the struct allocated. This resulted in a lot of weird behavior, specifically the adc read function immediately failing because it detected that the pointer was NULL
Test Cases
It built
It run on hardware
Printed out ADC values to confirm we were getting realistic readings
Changes
There was a bug where the new interface for retrieving ADC data was not actually returning anything. This PR fixes that
Notes
The main problem is that in the init function for the mpu struct, we were returning a 0, not the struct allocated. This resulted in a lot of weird behavior, specifically the adc read function immediately failing because it detected that the pointer was NULL
Test Cases