Skip to content
Snippets Groups Projects
Commit 7df0717d authored by Malaurie Bernard's avatar Malaurie Bernard
Browse files

Fixing mistakes about clockwise_equals_push/foward

parent 16153f95
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -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()));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment