1
0
mirror of https://github.com/raphnet/gc_n64_usb-v3 synced 2025-01-30 23:00:11 -05:00

Add get signature command

This commit is contained in:
Raphael Assenat 2015-10-27 23:57:27 -04:00
parent 6aaccb0eb3
commit 3ff63e9df1

View File

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