Skip to content

Commit

Permalink
* Changing gphoto2 log entry to a warning.
Browse files Browse the repository at this point in the history
* Try to get camera model.
  • Loading branch information
wtgee committed May 2, 2024
1 parent cf8561f commit ff34248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/panoptes/pocs/camera/gphoto/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_command_result(self, timeout: float = 10) -> Union[List[str], None]:

self.logger.trace(f'gphoto2 output: {outs=!r}')
if errs != '':
self.logger.error(f'gphoto2 error: {errs!r}')
self.logger.warning(f'gphoto2 error: {errs!r}')

if isinstance(outs, str):
outs = outs.split('\n')
Expand Down
3 changes: 1 addition & 2 deletions src/panoptes/pocs/camera/gphoto/canon.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ def connect(self):

self.set_properties(prop2value=prop2value)

# TODO check this works on all Canon models.
self.model = self.get_property('d402')
self.model = self.get_property('model')

self._connected = True

Expand Down

0 comments on commit ff34248

Please sign in to comment.