chg: not fatal
This commit is contained in:
@@ -337,7 +337,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
PrintAndLogEx(FAILED, "Sorry, add-on not found. Abort.");
|
PrintAndLogEx(FAILED, "Sorry, add-on not found. Abort.");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Reconfiguring add-on to default settings.");
|
PrintAndLogEx(INFO, "Reconfiguring add-on to default settings.");
|
||||||
@@ -359,7 +359,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(data, 0, sizeof(data));
|
memset(data, 0, sizeof(data));
|
||||||
@@ -377,7 +377,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(data, 0, sizeof(data));
|
memset(data, 0, sizeof(data));
|
||||||
@@ -395,7 +395,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// parity must be changed before baudrate
|
// parity must be changed before baudrate
|
||||||
@@ -415,7 +415,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,7 +435,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -451,7 +451,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||||||
found = usart_bt_testcomm(USART_BAUD_RATE, USART_PARITY) == PM3_SUCCESS;
|
found = usart_bt_testcomm(USART_BAUD_RATE, USART_PARITY) == PM3_SUCCESS;
|
||||||
if (!found) {
|
if (!found) {
|
||||||
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
PrintAndLogEx(WARNING, "Lost contact with add-on, please try again");
|
||||||
return PM3_EFATAL;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user