mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-28 03:14:53 +08:00
fix: usb_cdc don't report that pm3 device is selfpowered.. (since its not by default)
This commit is contained in:
parent
76e139701a
commit
b5842e8c1b
2 changed files with 6 additions and 4 deletions
|
@ -1166,9 +1166,8 @@ int CmdHF14AMfNestedHard(const char *Cmd) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int randInRange(int min, int max)
|
||||
{
|
||||
return min + (int) (rand() / (double) (RAND_MAX + 1) * (max - min + 1));
|
||||
int randInRange(int min, int max) {
|
||||
return min + (int) (rand() / (double) (RAND_MAX + 1) * (max - min + 1));
|
||||
}
|
||||
|
||||
//Fisher–Yates shuffle
|
||||
|
|
|
@ -159,7 +159,7 @@ static const char cfgDescriptor[] = {
|
|||
2, // Number of Interfaces
|
||||
1, // Index value of this Configuration (used in SetConfiguration from Host)
|
||||
0, // Configuration string index
|
||||
0xC0, // Attributes 0xA0
|
||||
_DEFAULT, // Attributes 0xA0
|
||||
0xFA, // Max Power consumption
|
||||
|
||||
// IAD to associate the one CDC interface
|
||||
|
@ -363,6 +363,9 @@ static const char StrLanguageCodes[] = {
|
|||
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[] = {
|
||||
26, // Length
|
||||
0x03, // Type is string
|
||||
|
|
Loading…
Reference in a new issue