Skip to content

Commit

Permalink
fix(set_gem_timing): updated logic to reflect application layer conce…
Browse files Browse the repository at this point in the history
…rs: do not exit the program if PV and IOC software are out of sync
  • Loading branch information
joshc-slac committed Sep 13, 2023
1 parent 8f41561 commit 4bd56cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/set_gem_timing
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ else
fi

if [[ -n $2 ]]; then
echo "Warning. Must pass strictly one argument, additional arg: $2 is ignored"
echo "Error. Must pass strictly one argument, at least one additional arg: $2, please run again with exclusively [NC or SC] as argument"
exit 1
fi

Expand All @@ -36,8 +36,7 @@ SET_MODE_CMD="caput KFE:CAM:TPR:02:MODE $1"

echo "Current OP_MODE is: $OP_MODE"
if [[ $OP_MODE = "$1" ]]; then
echo "Already in requested mode: $OP_MODE exitting with NOP"
exit 1
echo "Warning. Already in requested mode: $OP_MODE" #Note: (josh) we are opting to consider this not error worthy
else
echo "Actuating requested timing change, caputing $1 to KFE:CAM:TPR:02:MODE"
$SET_MODE_CMD
Expand Down

0 comments on commit 4bd56cb

Please sign in to comment.