ruuvi.firmware.c
ruuvi.firmware.c copied to clipboard
GPIO is not uninitialised on failed accelerometer initialisation, leaving floating pins
Possible fixes:
- Uninit GPIO on failed init
- Configure pull-up / down on GPIO
How did you discover this?
I took off accelerometer with hot air and ran power profile
What prompted you to do THAT ?
should this issue be in https://github.com/ruuvi/ruuvi.drivers.c ?
What prompted you to do THAT ?
We experiment on all kinds of things ;)
should this issue be in https://github.com/ruuvi/ruuvi.drivers.c
Not really. Drivers report back to application correctly that the accelerometer was not properly initialised, problem is in main.c/app_sensor.c and app_sensor_acc_thr_set()