Fix warning

This commit is contained in:
Raphael Assenat 2015-12-06 23:12:47 -05:00
parent a6266561e1
commit 099127c512
1 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@
#include "requests.h"
#include "config.h"
#include "hiddata.h"
#include "usbpad.h"
#include "bootloader.h"
#include "gcn64_protocol.h"
#include "version.h"
@ -75,7 +76,7 @@ uint8_t hiddata_set_report(const struct usb_request *rq, const uint8_t *dat, uin
static void hiddata_processCommandBuffer(void)
{
unsigned char channel;
//unsigned char channel;
#ifdef DEBUG
int i;
#endif
@ -94,7 +95,7 @@ static void hiddata_processCommandBuffer(void)
case RQ_GCN64_RAW_SI_COMMAND:
// TODO : Range checking
// cmdbuf[] : RQ, CHN, LEN, data[]
channel = cmdbuf[1];
//channel = cmdbuf[1];
cmdbuf_len = gcn64_transaction(cmdbuf+3, cmdbuf[2], cmdbuf + 3, CMDBUF_SIZE-3);
cmdbuf[2] = cmdbuf_len;
cmdbuf_len += 3; // Answer: RQ, CHN, LEN, data[]