Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO is not uninitialised on failed accelerometer initialisation, leaving floating pins #355

Open
ojousima opened this issue Dec 12, 2023 · 4 comments

Comments

@ojousima
Copy link
Member

Possible fixes:

  • Uninit GPIO on failed init
  • Configure pull-up / down on GPIO
@DG12
Copy link
Contributor

DG12 commented Dec 13, 2023

How did you discover this?

@ojousima
Copy link
Member Author

I took off accelerometer with hot air and ran power profile

@DG12
Copy link
Contributor

DG12 commented Dec 13, 2023

What prompted you to do THAT ?

should this issue be in https://github.com/ruuvi/ruuvi.drivers.c
?

@ojousima
Copy link
Member Author

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants