Skip to content

Commit

Permalink
pandad: fix return value in spi_transfer (commaai#34082)
Browse files Browse the repository at this point in the history
zero
  • Loading branch information
maxime-desroches authored Nov 22, 2024
1 parent 8d9a1fa commit 8939e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/pandad/spi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ int PandaSpiHandle::spi_transfer(uint8_t endpoint, uint8_t *tx_data, uint16_t tx
}
}

if (ret > 0) ret = -1;
if (ret >= 0) ret = -1;
return ret;
}
#endif

0 comments on commit 8939e3a

Please sign in to comment.