From 8dcdd320ffc4192a58d31eda3381caf61ae0e500 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Sat, 2 Jul 2022 16:44:57 +0200 Subject: [PATCH] camera: fix misuse of assignation operator in if --- src/sensors/data_source_camera_conicmirror.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sensors/data_source_camera_conicmirror.cpp b/src/sensors/data_source_camera_conicmirror.cpp index f5d0987..b2d54bc 100644 --- a/src/sensors/data_source_camera_conicmirror.cpp +++ b/src/sensors/data_source_camera_conicmirror.cpp @@ -54,7 +54,7 @@ void DataSourceCameraConic ::readSensor() { count = 0; } else if (value == endp) { data_received = false; - if ((count = 4) && (start == true)) { + if ((count == 4) && (start == true)) { data_received = true; true_xb = xb;