Skip to content
Snippets Groups Projects
Commit 2359b73d authored by DanielePettenuzzo's avatar DanielePettenuzzo Committed by Beat Küng
Browse files

pmw3901 driver: lock bus during transfers (avoid conflicts with sd card on crazyflie)

parent b822966e
No related branches found
No related tags found
No related merge requests found
......@@ -342,6 +342,9 @@ PMW3901::init()
{
int ret = PX4_ERROR;
/* For devices competing with NuttX SPI drivers on a bus (Crazyflie SD Card expansion board) */
SPI::set_lockmode(LOCK_THREADS);
/* do I2C init (and probe) first */
if (SPI::init() != OK) {
goto out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment