Skip to content

Commit

Permalink
Fix to use an existing variable in an if clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlpstsci authored and jamienoss committed Aug 11, 2018
1 parent 7921eef commit 670d8b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/acs/calacs/lib/getacskeys.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ int getACSKeys (ACSInfo *acs, Hdr *phdr) {
if (GetKeyStr (phdr, "DETECTOR", NO_DEFAULT, "", acs->det, ACS_CBUF))
return (status);


/* Grating or mirror name. */
if (GetKeyStr (phdr, "FILTER1", USE_DEFAULT, "", acs->filter1, ACS_CBUF))
return (status);
Expand All @@ -82,7 +81,7 @@ int getACSKeys (ACSInfo *acs, Hdr *phdr) {

/* Get CCD-specific parameters. */

if (acs->detector != MAMA_DETECTOR)
if (strcmp (acs->det, "SBC") != 0)
{
if (GetKeyStr (phdr, "CCDAMP", NO_DEFAULT, "",
acs->ccdamp, NAMPS))
Expand Down

0 comments on commit 670d8b5

Please sign in to comment.