Skip to content

Commit ace49e4

Browse files
authored
fix: log move to target insertion end (#710)
1 parent faa0bce commit ace49e4

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

Assets/Scripts/Pinpoint/UI/EphysCopilot/InsertionSelectionPanelHandler.cs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -538,20 +538,6 @@ private void MoveToTargetInsertion()
538538
// Complete movement
539539
EndMovement();
540540
_moveButton.interactable = false;
541-
542-
// Log movement finish.
543-
OutputLog.Log(
544-
new[]
545-
{
546-
"Copilot",
547-
DateTime.Now.ToString(CultureInfo.InvariantCulture),
548-
"MoveToTargetInsertion",
549-
ProbeManager
550-
.ManipulatorBehaviorController
551-
.ManipulatorID,
552-
"Finish"
553-
}
554-
);
555541
},
556542
error =>
557543
{
@@ -579,6 +565,18 @@ void EndMovement()
579565
{
580566
_isMoving = false;
581567
_moveButtonText.text = MOVE_TO_TARGET_INSERTION_STR;
568+
569+
// Log movement finish.
570+
OutputLog.Log(
571+
new[]
572+
{
573+
"Copilot",
574+
DateTime.Now.ToString(CultureInfo.InvariantCulture),
575+
"MoveToTargetInsertion",
576+
ProbeManager.ManipulatorBehaviorController.ManipulatorID,
577+
"Finish"
578+
}
579+
);
582580
}
583581
}
584582

0 commit comments

Comments
 (0)