Add get signature command

This commit is contained in:
Raphael Assenat 2015-10-27 23:57:27 -04:00
parent 6aaccb0eb3
commit 3ff63e9df1
1 changed files with 6 additions and 1 deletions

View File

@ -7,7 +7,8 @@
#include "gcn64_protocol.h"
#include "version.h"
#define CMDBUF_SIZE 64
// dataHidReport is 40 bytes.
#define CMDBUF_SIZE 41
#define STATE_IDLE 0
#define STATE_NEW_COMMAND 1 // New command in buffer
@ -106,6 +107,10 @@ static void hiddata_processCommandBuffer(void)
strcpy((char*)(cmdbuf + 1), g_version);
cmdbuf_len = 1 + strlen(g_version) + 1;
break;
case RQ_GCN64_GET_SIGNATURE:
strcpy_P((char*)(cmdbuf + 1), g_signature);
cmdbuf_len = 1 + strlen_P(g_version) + 1;
break;
}
#ifdef DEBUG