Wow, two improbable bugs were cancelling each other
This commit is contained in:
@@ -1520,6 +1520,7 @@ static void PacketReceived(PacketCommandNG *packet) {
|
|||||||
break;
|
break;
|
||||||
case CMD_CAPABILITIES:
|
case CMD_CAPABILITIES:
|
||||||
SendCapabilities();
|
SendCapabilities();
|
||||||
|
break;
|
||||||
case CMD_PING:
|
case CMD_PING:
|
||||||
reply_ng(CMD_PING, PM3_SUCCESS, packet->data.asBytes, packet->length);
|
reply_ng(CMD_PING, PM3_SUCCESS, packet->data.asBytes, packet->length);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ int TestProxmark(void) {
|
|||||||
return PM3_EIO;
|
return PM3_EIO;
|
||||||
|
|
||||||
SendCommandNG(CMD_CAPABILITIES, NULL, 0);
|
SendCommandNG(CMD_CAPABILITIES, NULL, 0);
|
||||||
if (WaitForResponseTimeoutW(CMD_PING, &resp, 1000, false)) {
|
if (WaitForResponseTimeoutW(CMD_CAPABILITIES, &resp, 1000, false)) {
|
||||||
memcpy(&pm3_capabilities, resp.data.asBytes, resp.length);
|
memcpy(&pm3_capabilities, resp.data.asBytes, resp.length);
|
||||||
conn.send_via_fpc_usart = pm3_capabilities.via_fpc;
|
conn.send_via_fpc_usart = pm3_capabilities.via_fpc;
|
||||||
conn.uart_speed = pm3_capabilities.baudrate;
|
conn.uart_speed = pm3_capabilities.baudrate;
|
||||||
|
|||||||
Reference in New Issue
Block a user