Skip to content

Commit

Permalink
Only pass --guider-time if box is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Apr 18, 2024
1 parent 1921dff commit 3b4038b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/renderer/HAL/GotoField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ export default function GotoField() {
}, []);

const getCommandString = React.useCallback(() => {
let cmdString = `${commandString} --guider-time ${guiderTime || 15}`;
let cmdString = commandString;
if (guiderTime.trim() !== '') {
cmdString += ` --guider-time ${guiderTime.trim()}`;
}
if (fixedAltAz) {
cmdString += ' --fixed-altaz';
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/HAL/macros.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"boss_flat": "Flat"
},
"defaults": {
"guider_time": 15.0
"guider_time": ""
}
},
"apogee_dome_flat": {
Expand Down

0 comments on commit 3b4038b

Please sign in to comment.