mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Add version command
This commit is contained in:
parent
7af790aa03
commit
ba8a80b30c
6 changed files with 66 additions and 0 deletions
|
@ -236,6 +236,14 @@ void ReadMem(int addr)
|
|||
DbpIntegers(0, data[i], data[i+1]);
|
||||
}
|
||||
|
||||
void SendVersion(void)
|
||||
{
|
||||
char temp[48]; /* Limited data payload in USB packets */
|
||||
DbpString("Prox/RFID mark3 RFID instrument");
|
||||
FpgaGatherVersion(temp, sizeof(temp));
|
||||
DbpString(temp);
|
||||
}
|
||||
|
||||
// samy's sniff and repeat routine
|
||||
void SamyRun()
|
||||
{
|
||||
|
@ -616,6 +624,9 @@ void UsbPacketReceived(BYTE *packet, int len)
|
|||
case CMD_SET_LF_DIVISOR:
|
||||
FpgaSendCommand(FPGA_CMD_SET_DIVISOR, c->ext1);
|
||||
break;
|
||||
case CMD_VERSION:
|
||||
SendVersion();
|
||||
break;
|
||||
#ifdef WITH_LCD
|
||||
case CMD_LCD_RESET:
|
||||
LCDReset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue