mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-13 16:43:26 +08:00
Update preferences.c
This commit is contained in:
parent
dd09d4074c
commit
3aee4fc5e9
1 changed files with 2 additions and 2 deletions
|
@ -790,7 +790,7 @@ static int setCmdSavePaths (const char *Cmd) {
|
||||||
} else {
|
} else {
|
||||||
if ((strncmp(strOpt, "default", 7) == 0) ||
|
if ((strncmp(strOpt, "default", 7) == 0) ||
|
||||||
(strncmp(strOpt, "dump", 4) == 0) ||
|
(strncmp(strOpt, "dump", 4) == 0) ||
|
||||||
(strncmp(strOpt, "trace", 7) == 0)) {
|
(strncmp(strOpt, "trace", 5) == 0)) {
|
||||||
|
|
||||||
// Get Path
|
// Get Path
|
||||||
optLen = param_getlength(Cmd, cmdp) + 1;
|
optLen = param_getlength(Cmd, cmdp) + 1;
|
||||||
|
@ -814,7 +814,7 @@ static int setCmdSavePaths (const char *Cmd) {
|
||||||
pathItem = spItemCount;
|
pathItem = spItemCount;
|
||||||
if (strncmp(strOpt, "default", 7) == 0) pathItem = spDefault;
|
if (strncmp(strOpt, "default", 7) == 0) pathItem = spDefault;
|
||||||
if (strncmp(strOpt, "dump", 4) == 0) pathItem = spDump;
|
if (strncmp(strOpt, "dump", 4) == 0) pathItem = spDump;
|
||||||
if (strncmp(strOpt, "trace", 7) == 0) pathItem = spTrace;
|
if (strncmp(strOpt, "trace", 5) == 0) pathItem = spTrace;
|
||||||
|
|
||||||
if (pathItem < spItemCount) {
|
if (pathItem < spItemCount) {
|
||||||
if (strcmp(newValue, session.defaultPaths[pathItem]) != 0) {
|
if (strcmp(newValue, session.defaultPaths[pathItem]) != 0) {
|
||||||
|
|
Loading…
Reference in a new issue