mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 23:25:40 -07:00
detect if module said OK
This commit is contained in:
parent
ecce0e6502
commit
c22778d219
1 changed files with 2 additions and 2 deletions
|
@ -322,7 +322,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||
ret = usart_txrx((uint8_t *)string, strlen(string), data, &len, 1000);
|
||||
if (ret == PM3_SUCCESS) {
|
||||
PrintAndLogEx(SUCCESS, "RX (%3zu):%.*s", len, (int)len, data);
|
||||
if (strcmp((char *)data, "OK")) {
|
||||
if (strstr((char *)data, "OK") != NULL) {
|
||||
PrintAndLogEx(SUCCESS, "PIN set to " _GREEN_("1234"));
|
||||
} else {
|
||||
PrintAndLogEx(WARNING, "Unexpected response to AT+PIN: " _YELLOW_("%.*s"), (int)len, data);
|
||||
|
@ -385,7 +385,7 @@ static int CmdUsartBtFactory(const char *Cmd) {
|
|||
ret = usart_txrx((uint8_t *)string, strlen(string), data, &len, 1000);
|
||||
if (ret == PM3_SUCCESS) {
|
||||
PrintAndLogEx(SUCCESS, "RX (%3zu):%.*s", len, (int)len, data);
|
||||
if (strcmp((char *)data, "OK")) {
|
||||
if (strstr((char *)data, "OK") != NULL) {
|
||||
PrintAndLogEx(SUCCESS, "Parity set to " _GREEN_("None") " and Baudrate set to " _GREEN_("115200"));
|
||||
} else {
|
||||
PrintAndLogEx(WARNING, "Unexpected response to AT+BAUD: " _YELLOW_("%.*s"), (int)len, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue