Skip to content

Commit

Permalink
addresses #11
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang committed Apr 14, 2023
1 parent d9531c2 commit 320aa5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions opticsApp/src/filterDrive.st
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ assign ENBL to {};
monitor ENBL;
sync ENBL needRecalc;
/* Define array for the output channels */
int OUT[MAX_FILTERS];
assign OUT to {};
/* Define array for the output channels, UNUSED */
#int OUT[MAX_FILTERS];
#assign OUT to {};
/* Define array for the readback of the output channels */
int OUTGET[MAX_FILTERS];
Expand Down Expand Up @@ -352,8 +352,8 @@ static double calcTrans(double keV,
pvAssign(SET[i], str);
sprintf(str, "%s%sFi%d:Enable", prefix, record, i+1);
pvAssign(ENBL[i], str);
sprintf(str, "%s%sFi%d:Set", prefix, record, i+1);
pvAssign(OUT[i], str);
#sprintf(str, "%s%sFi%d:Set", prefix, record, i+1);
#pvAssign(OUT[i], str);
sprintf(str, "%s%sFi%d:OutGet", prefix, record, i+1);
pvAssign(OUTGET[i], str);
Expand Down Expand Up @@ -463,7 +463,7 @@ static double calcTrans(double keV,
efClear(externalIO); /* Is this needed? It probably should not be. */
pvGet(SET[i]);
if (SET[i] != OUTGET[i]) {
/* We mustn't write to SET[i] unless OUT[i] is different, because
/* We mustn't write to SET[i] unless OUTGET[i] is different, because
* writing processes, which sets STATUS_UPDATE, which brings us back
* here, causing an infinite loop.
*/
Expand Down

0 comments on commit 320aa5d

Please sign in to comment.