Skip to content
Commit d2fdf52d authored by Ryan McClelland's avatar Ryan McClelland Committed by Daniel DeGrasse
Browse files

drivers: sensor: bmm350: fix handling interrupt race condition



There is a race condition where an interrupt can fire before the
drdy_handler is registered. The drdy_handler will tradionaly
callback the sample get clearing the interrupt... but if it's not
configured and NULL, the interrupt will stay forever latched. Read
the interrupt status to clear the interrupt flag allowing it to
trigger again.

Also, move the serial api function helpers in to the header
allowing them to be used from other c files.

Signed-off-by: default avatarRyan McClelland <ryanmcclelland@meta.com>
parent c7e1f0b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment