From 7df0717d8fdc3211f309f989ffb4a5814c3e0e17 Mon Sep 17 00:00:00 2001
From: Malaurie Bernard <mbernard@kinouby>
Date: Wed, 6 Sep 2023 11:37:53 +0200
Subject: [PATCH] Fixing mistakes about clockwise_equals_push/foward

---
 syringefilled.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/syringefilled.cpp b/syringefilled.cpp
index 3b30249..d417e7b 100644
--- a/syringefilled.cpp
+++ b/syringefilled.cpp
@@ -270,12 +270,12 @@ void SyringeFilled :: start_exchange()
     if (get_push()) //If we want to deliver some liquid
     {
         reset_position();
-        move_to_mm_limit_switch(_clockwise_equals_push? volume_mL_to_distance_mm(get_exchange_volume_mL()): -volume_mL_to_distance_mm(get_exchange_volume_mL()));
+        move_to_mm_limit_switch((get_clockwise_equals_forward()==get_clockwise_equals_push())? volume_mL_to_distance_mm(get_exchange_volume_mL()): -volume_mL_to_distance_mm(get_exchange_volume_mL()));
     }
     else //If we want to recover some liquid
     {
         reset_position();
-        move_to_mm_limit_switch(_clockwise_equals_push? -volume_mL_to_distance_mm(get_exchange_volume_mL()): volume_mL_to_distance_mm(get_exchange_volume_mL()));
+        move_to_mm_limit_switch((get_clockwise_equals_forward()==get_clockwise_equals_push())? -volume_mL_to_distance_mm(get_exchange_volume_mL()): volume_mL_to_distance_mm(get_exchange_volume_mL()));
     }
     
 
-- 
GitLab