Skip to content

Commit

Permalink
plan update correction
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Jun 11, 2019
1 parent 9c48787 commit 58a424a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ if (VIEW_HARDWARE) {
program.rampMode = 'auto';
}
if(program.rampMode == 'auto') {
program.savedExposurePlans = program.exposurePlans;
if(program.exposurePlans.length) program.savedExposurePlans = program.exposurePlans;
program.exposurePlans = [];
} else if(program.rampMode == 'eclipse') {
var coords = mcu.validCoordinates();
Expand Down Expand Up @@ -407,7 +407,7 @@ if (VIEW_HARDWARE) {
});
}
} else {
program.savedExposurePlans = program.exposurePlans;
if(program.exposurePlans.length) program.savedExposurePlans = program.exposurePlans;
program.exposurePlans = [];
}
return program;
Expand Down

0 comments on commit 58a424a

Please sign in to comment.