From 2098121ae03a14e1f6d0fe0fa154ff282f808b34 Mon Sep 17 00:00:00 2001 From: anschrammh Date: Fri, 5 Jan 2024 22:10:28 +0100 Subject: [PATCH] Fixed typo which could lead to a hard to find bug... --- src/W800_SDK_v1.00.10/app/app_drivers/i2c/bma456_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;