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

Always crash on BHI260AP IRQ #11

Closed
vsimionescu opened this issue Apr 28, 2024 · 1 comment
Closed

Always crash on BHI260AP IRQ #11

vsimionescu opened this issue Apr 28, 2024 · 1 comment

Comments

@vsimionescu
Copy link

In the commit: d6f515c an always crash was added by this line from SensorBHI260AP.hpp:

static void handleISR()
{
*(bool *)(__data_available) = true;
}

as the definition of __data_available is: volatile bool SensorBHI260AP::__data_available;

so a bool is cast to bool * and than dereferenced.

Fix: change to __data_available = true;

@lewisxhe
Copy link
Owner

Thank you for reminding me that this change was only done for compilation testing and not for hardware testing.

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