Fixed typo which could lead to a hard to find bug...
This commit is contained in:
parent
b11810decf
commit
2098121ae0
@ -58,7 +58,7 @@ bool bma456_wrapper_is_config_file_already_loaded(struct bma4_dev *bma)
|
||||
if(!bma) return false;
|
||||
|
||||
/* Read the status of BMA4 accelerometer to know if the ASIC is running or not */
|
||||
if(bma4_read_regs(BMA4_INTERNAL_STAT, &status, 1, bma) == BMA4_OK);
|
||||
if(bma4_read_regs(BMA4_INTERNAL_STAT, &status, 1, bma) == BMA4_OK)
|
||||
{
|
||||
/* Only get the message bits */
|
||||
status &= BMA4_CONFIG_STREAM_MESSAGE_MSK;
|
||||
|
Loading…
Reference in New Issue
Block a user