diff options
author | Tristan Honscheid <honscheid@google.com> | 2021-10-18 11:42:25 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-18 21:39:23 +0000 |
commit | 705fd9970f12bce63f8caa9371f633488e6432ee (patch) | |
tree | ff8ddd8f3266fb995006a06a96a9af0fd6b0131d /board/waddledoo2 | |
parent | 78f5a2e13645460cd313d6487903e709f0d1143e (diff) | |
download | chrome-ec-705fd9970f12bce63f8caa9371f633488e6432ee.tar.gz |
zephyr: Test accelgyro_bmi260.c for unsupported operations
Add a test that covers parts of the code where we validate sensor types.
Also made a modification to accelgyro_bmi260.c where I moved the sensor
type check up to the top of the func so we fail before trying to set
the data rate (which doesn't work for magnetometers).
BRANCH=None
BUG=b:184856157
TEST=zmake configure --test zephyr/test/drivers
Signed-off-by: Tristan Honscheid <honscheid@google.com>
Change-Id: I170087b8bfdc1212972d00010c90789967a6415b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3229076
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'board/waddledoo2')
0 files changed, 0 insertions, 0 deletions