Add version command

This commit is contained in:
henryk@ploetzli.ch 2009-08-28 00:37:28 +00:00
commit ba8a80b30c
6 changed files with 66 additions and 0 deletions

View file

@ -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();