Skip to content

Commit

Permalink
Merge pull request #356 from Gorbush/FlashAutoDescription
Browse files Browse the repository at this point in the history
Fix of the Flash description for Flash == OFF
  • Loading branch information
drewnoakes authored Oct 10, 2018
2 parents 84a65f5 + 0548deb commit 635aae2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/com/drew/metadata/exif/ExifDescriptorBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ public String getFlashDescription()
sb.append(", return not detected");
}

if ((value & 0x10) != 0)
// If 0x10 is set and the lowest byte is not zero - then flash is Auto
if ((value & 0x10) != 0 && (value & 0x0F) != 0)
sb.append(", auto");

if ((value & 0x40) != 0)
Expand Down

0 comments on commit 635aae2

Please sign in to comment.