rework ping

This commit is contained in:
Philippe Teuwen 2019-05-07 23:35:09 +02:00
commit 2f1061f95b
8 changed files with 25 additions and 36 deletions

View file

@ -1521,11 +1521,7 @@ static void PacketReceived(PacketCommandNG *packet) {
case CMD_CAPABILITIES:
SendCapabilities();
case CMD_PING:
if (packet->ng) {
reply_ng(CMD_PING, PM3_SUCCESS, packet->data.asBytes, packet->length);
} else {
reply_mix(CMD_ACK, reply_via_fpc, 0, 0, 0, 0);
}
reply_ng(CMD_PING, PM3_SUCCESS, packet->data.asBytes, packet->length);
break;
#ifdef WITH_LCD
case CMD_LCD_RESET: