From bdefb9329a5563263b72c2318fc63c1f202535e4 Mon Sep 17 00:00:00 2001 From: timmmooney Date: Mon, 25 Nov 2013 20:40:05 +0000 Subject: [PATCH] must use pVar in escaped code --- motorApp/AerotechSrc/EnsembleTrajectoryScan.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motorApp/AerotechSrc/EnsembleTrajectoryScan.st b/motorApp/AerotechSrc/EnsembleTrajectoryScan.st index cfdbb831..2a1a0016 100644 --- a/motorApp/AerotechSrc/EnsembleTrajectoryScan.st +++ b/motorApp/AerotechSrc/EnsembleTrajectoryScan.st @@ -1249,7 +1249,7 @@ static int loadTrajectory(SS_ID ssId, struct UserVar *pVar) { sprintf(stringOut, "pfbkcal(@%d)", j); status = writeRead(ssId, pVar, stringOut, reply); posfbkcal = atof(&reply[1]); - motorPosOffset[j] = posfbkprog - posfbkcal; + pVar->motorPosOffset[j] = posfbkprog - posfbkcal; } #if PSO_DISTANCE_ARRAY