lis3dsh.c edited to obey the nuttx coding standard.
This commit is contained in:
parent
81b599e8ae
commit
6f57d1d472
@ -318,13 +318,15 @@ static int lis3dsh_interrupt_handler(int irq, FAR void *context)
|
|||||||
* SPI bus from within an interrupt.
|
* SPI bus from within an interrupt.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(work_available(&priv->work)) {
|
if (work_available(&priv->work))
|
||||||
ret = work_queue(HPWORK, &priv->work, lis3dsh_worker, priv, 0);
|
{
|
||||||
if (ret < 0) {
|
ret = work_queue(HPWORK, &priv->work, lis3dsh_worker, priv, 0);
|
||||||
snerr("ERROR: Failed to queue work: %d\n", ret);
|
if (ret < 0)
|
||||||
return ret;
|
{
|
||||||
|
snerr("ERROR: Failed to queue work: %d\n", ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user