summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-03-02 16:44:00 -0700
committerCommit Bot <commit-bot@chromium.org>2022-03-03 14:17:42 +0000
commitfe3358e673ee45a2a5061b0011ad18186f34135c (patch)
treea4372bbcf319b04c536cb408de9edb008cb36bf5 /test
parent4dd8b2f4e8d165d640d1977eeb262284b032df2b (diff)
downloadchrome-ec-fe3358e673ee45a2a5061b0011ad18186f34135c.tar.gz
tests/accel_cal: Fix boolean bitwise-or
This is producing compile errors. BUG=b:222356674 BRANCH=none TEST=zmake test Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I5113ca0b40b088c60b72095b576f312c74fad35c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3501251 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Yuval Peress <peress@google.com> Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/accel_cal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/accel_cal.c b/test/accel_cal.c
index de46822711..34fd5678c2 100644
--- a/test/accel_cal.c
+++ b/test/accel_cal.c
@@ -30,11 +30,11 @@ struct accel_cal cal = {
static bool accumulate(float x, float y, float z, float temperature)
{
return accel_cal_accumulate(&cal, 0, x, y, z, temperature)
- | accel_cal_accumulate(&cal, 200 * MSEC, x, y, z, temperature)
- | accel_cal_accumulate(&cal, 400 * MSEC, x, y, z, temperature)
- | accel_cal_accumulate(&cal, 600 * MSEC, x, y, z, temperature)
- | accel_cal_accumulate(&cal, 800 * MSEC, x, y, z, temperature)
- | accel_cal_accumulate(&cal, 1000 * MSEC, x, y, z, temperature);
+ || accel_cal_accumulate(&cal, 200 * MSEC, x, y, z, temperature)
+ || accel_cal_accumulate(&cal, 400 * MSEC, x, y, z, temperature)
+ || accel_cal_accumulate(&cal, 600 * MSEC, x, y, z, temperature)
+ || accel_cal_accumulate(&cal, 800 * MSEC, x, y, z, temperature)
+ || accel_cal_accumulate(&cal, 1000 * MSEC, x, y, z, temperature);
}
DECLARE_EC_TEST(test_calibrated_correctly_with_kasa)