Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix_1368 Sigma 18-35mm f/1.8 DC HSM (0.27 only) #1373

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

lbschenkel
Copy link
Collaborator

@lbschenkel lbschenkel commented Oct 19, 2020

See #1368. On Canon bodies and lens firmware 1.x, this lens identifies itself using
model number 150. Starting with firmware 2.x, this lens now identifies
itself using model number 368.

Exiv2 was correctly identifying the former but not the latter.

This PR also fixes a pre-existing bug in which exiv2 was not
correctly disambiguating lenses using model number 368.

clanmills
clanmills previously approved these changes Oct 19, 2020
Copy link
Collaborator

@clanmills clanmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Thanks very much.

My only comment is to point out that can run exiv2 (or any command) more than once in a test. Commands is an array, as are retval, stderr, stdout. If you'd like to change it, I will merge later. If you want to leave it "as is", I'll merge.

I will cut'n'paste my instructions to you about the test harness in to the book. So, while helping you, the book has also developed. I'll mention you on page 2.

If you'd like to do more work on Exiv2, I would be delighted to have your help. In August, I recruited a young Chinese engineer @LeoHsiao1 who has done marvellous work on rewriting bash_tests in python. So Leo meet Leonardo. Leonardo meet Leo.

I've changed the title to match my naming style.

@clanmills clanmills self-assigned this Oct 19, 2020
@clanmills clanmills added this to the v0.27.4 milestone Oct 19, 2020
@clanmills clanmills changed the title Detect Sigma 18-35mm f/1.8 DC HSM (firmware 2.x) Fix_1368 Sigma 18-35mm f/1.8 DC HSM (0.27) Oct 19, 2020
@clanmills
Copy link
Collaborator

Another comment about this. I haven't really studied the issue here. If it's straight-forward to port this PR to master can you change the trailer of the title (0.27) to be (0.27->master) to be sure that the release engineer (probably me) deals with it.

If you intend to submit a different PR for 'master', please change the trailer to (0.27 only).

@lbschenkel
Copy link
Collaborator Author

My only comment is to point out that can run exiv2 (or any command) more than once in a test. Commands is an array, as are retval, stderr, stdout. If you'd like to change it, I will merge later. If you want to leave it "as is", I'll merge.

No problem, I'll improve it.

If you'd like to do more work on Exiv2, I would be delighted to have your help.

I'm afraid that I won't be able to commit to that. I have a newborn at home and a number of other projects that I'm the maintainer for. :-) But I think I will be able to submit future fixes unassisted, if I ever encounter a similar issue.

If you intend to submit a different PR for 'master', please change the trailer to (0.27 only).

Master does not have this particular bug, because in master this is the only lens with model 368. But I can submit the new tests if you like.

On Canon bodies and lens firmware 1.x, this lens identifies itself using
model number 150. Starting with firmware 2.x, this lens now identifies
itself using model number 368.

Exiv2 was correctly identifying the former but not the latter.

This commit also fixes a pre-existing bug in which exiv2 was not
correctly disambiguating lenses using model number 368.
@lbschenkel
Copy link
Collaborator Author

Improved test case to avoid running multiple commands.

@lbschenkel lbschenkel changed the title Fix_1368 Sigma 18-35mm f/1.8 DC HSM (0.27) Fix_1368 Sigma 18-35mm f/1.8 DC HSM (0.27 only) Oct 19, 2020
Copy link
Collaborator

@clanmills clanmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job. Thanks very much. Please submit a PR to master with an update to the test suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sigma 18-35mm f/1.8 DC HSM misdetected after upgrading to firmware 2.03
2 participants