From 9ac3c787a2a4a62a42f9228e2023512b162be8f6 Mon Sep 17 00:00:00 2001 From: Andrey Gusakov Date: Wed, 13 Mar 2024 01:04:03 +0300 Subject: [PATCH] max3185x: compare not assign --- firmware/hw_layer/sensors/max3185x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/hw_layer/sensors/max3185x.cpp b/firmware/hw_layer/sensors/max3185x.cpp index 90b4e21cabf..4aea4313005 100644 --- a/firmware/hw_layer/sensors/max3185x.cpp +++ b/firmware/hw_layer/sensors/max3185x.cpp @@ -307,7 +307,7 @@ class Max3185xRead final : public ThreadController { (rx[3] << 0); /* MISO is constantly low or high */ - if ((data = 0xffffffff) || (data == 0x0)) { + if ((data == 0xffffffff) || (data == 0x0)) { return UNKNOWN_TYPE; }