Skip to content

Commit

Permalink
dfu-util fix condition for multiple interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Borca committed Jul 22, 2013
1 parent 32751fd commit 56475d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfu-util/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ int download(AbstractFile* file, unsigned int transfer_size, int final_reset)
fprintf(stderr, "Can't find the single available DFU IF\n");
exit(1);
}
} else if (num_ifs > 1 && !dif->flags & (DFU_IFF_IFACE|DFU_IFF_ALT)) {
} else if (num_ifs > 1 && !(dif->flags & (DFU_IFF_IFACE|DFU_IFF_ALT))) {
fprintf(stderr, "We have %u DFU Interfaces/Altsettings, "
"you have to specify one via --intf / --alt options\n",
num_ifs);
Expand Down

0 comments on commit 56475d8

Please sign in to comment.