max3185x: fix compilation warning (#264)

(cherry picked from commit 083defaaf2dd20498939ca5ddd40195a2484c33b)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2023-06-07 03:07:44 -04:00 committed by GitHub
parent 1dd87975a3
commit 6021a5eb6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ int Max3185x::detect()
uint32_t data;
int ret = spi_txrx(tx, rx, 4);
if (ret)
return ret;
data = (rx[0] << 24) |
(rx[1] << 16) |
(rx[2] << 8) |