fix: usb_cdc don't report that pm3 device is selfpowered.. (since its not by default)

This commit is contained in:
iceman1001 2017-10-29 19:28:23 +01:00
commit b5842e8c1b
2 changed files with 6 additions and 4 deletions

View file

@ -1166,9 +1166,8 @@ int CmdHF14AMfNestedHard(const char *Cmd) {
return 0; return 0;
} }
int randInRange(int min, int max) int randInRange(int min, int max) {
{ return min + (int) (rand() / (double) (RAND_MAX + 1) * (max - min + 1));
return min + (int) (rand() / (double) (RAND_MAX + 1) * (max - min + 1));
} }
//FisherYates shuffle //FisherYates shuffle

View file

@ -159,7 +159,7 @@ static const char cfgDescriptor[] = {
2, // Number of Interfaces 2, // Number of Interfaces
1, // Index value of this Configuration (used in SetConfiguration from Host) 1, // Index value of this Configuration (used in SetConfiguration from Host)
0, // Configuration string index 0, // Configuration string index
0xC0, // Attributes 0xA0 _DEFAULT, // Attributes 0xA0
0xFA, // Max Power consumption 0xFA, // Max Power consumption
// IAD to associate the one CDC interface // IAD to associate the one CDC interface
@ -363,6 +363,9 @@ static const char StrLanguageCodes[] = {
0x09, 0x04 // supported language Code 0 = 0x0409 (English) 0x09, 0x04 // supported language Code 0 = 0x0409 (English)
}; };
// Note: ModemManager (Linux) ignores Proxmark3 devices by matching the
// manufacturer string "proxmark.org". Don't change this.
// or use the blacklisting file.
static const char StrManufacturer[] = { static const char StrManufacturer[] = {
26, // Length 26, // Length
0x03, // Type is string 0x03, // Type is string