From 124b8a5b222e0c33a40991d9d2d0eb0e8cf1e1ae Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Thu, 16 Jul 2026 16:50:49 +0200 Subject: [PATCH] hostmot2: Fix sserial error test to use 1 << x and not 1 < x. --- src/hal/drivers/mesa-hostmot2/sserial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hal/drivers/mesa-hostmot2/sserial.c b/src/hal/drivers/mesa-hostmot2/sserial.c index a17fcc6da84..97d4fc2f033 100644 --- a/src/hal/drivers/mesa-hostmot2/sserial.c +++ b/src/hal/drivers/mesa-hostmot2/sserial.c @@ -75,7 +75,7 @@ int hm2_sserial_wait(hostmot2_t *hm2, hm2_sserial_instance_t *inst, long period) "Timeout waiting for CMD to clear\n"); return -1; } - if (*(inst->data_reg_read) & (1 < inst->remotes[inst->r_index].index)){ + if (*(inst->data_reg_read) & (1 << inst->remotes[inst->r_index].index)){ HM2_ERR("Error after doit clear\n"); return -1; }