diff --git a/src/W800_SDK_v1.00.10/app/app_drivers/i2c/bma456_wrapper.c b/src/W800_SDK_v1.00.10/app/app_drivers/i2c/bma456_wrapper.c index 83d15d2..bcbf139 100644 --- a/src/W800_SDK_v1.00.10/app/app_drivers/i2c/bma456_wrapper.c +++ b/src/W800_SDK_v1.00.10/app/app_drivers/i2c/bma456_wrapper.c @@ -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;