From 8939e3a30bf5f4e969e61fa20bdd089b4f8a4b19 Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Thu, 21 Nov 2024 22:46:31 -0800 Subject: [PATCH] pandad: fix return value in spi_transfer (#34082) zero --- selfdrive/pandad/spi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/pandad/spi.cc b/selfdrive/pandad/spi.cc index 8f1e29689..d365dd362 100644 --- a/selfdrive/pandad/spi.cc +++ b/selfdrive/pandad/spi.cc @@ -418,7 +418,7 @@ fail: } } - if (ret > 0) ret = -1; + if (ret >= 0) ret = -1; return ret; } #endif