diff options
author | Yuval Peress <peress@google.com> | 2022-09-06 21:39:02 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-07 15:16:49 +0000 |
commit | 08170f67b3c5268ea6c9e4e593de4fcd4007ab53 (patch) | |
tree | 60d902e02edecb2cd51562f7a606463ad5d88fa3 /zephyr | |
parent | c36377776d6e7c7ef634e56cb59a194ff075b3a6 (diff) | |
download | chrome-ec-08170f67b3c5268ea6c9e4e593de4fcd4007ab53.tar.gz |
test: Add initialization in bmi260
Fix a compiler warning in the bmi260 tests.
BRANCH=none
BUG=none
TEST=twister -T zephyr/test/drivers
Signed-off-by: Yuval Peress <peress@google.com>
Change-Id: I9c1eebbeecb8db73d0a1f140218d7af9b750a6a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3877568
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Commit-Queue: Al Semjonovs <asemjonovs@google.com>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/test/drivers/default/src/bmi260.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/test/drivers/default/src/bmi260.c b/zephyr/test/drivers/default/src/bmi260.c index 1281f9970a..56187a126e 100644 --- a/zephyr/test/drivers/default/src/bmi260.c +++ b/zephyr/test/drivers/default/src/bmi260.c @@ -1960,7 +1960,7 @@ ZTEST_USER(bmi260, test_unsupported_configs) memcpy(&ms_fake, &motion_sensors[BMI_ACC_SENSOR_ID], sizeof(ms_fake)); ms_fake.type = MOTIONSENSE_TYPE_MAG; - int16_t offset[3]; + int16_t offset[3] = { 0 }; int ret = ms_fake.drv->set_offset(&ms_fake, (const int16_t *)&offset, 0); zassert_equal( |