From 099127c512130f6ee24b34dab489ce69ab4300c1 Mon Sep 17 00:00:00 2001 From: Raphael Assenat Date: Sun, 6 Dec 2015 23:12:47 -0500 Subject: [PATCH] Fix warning --- hiddata.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hiddata.c b/hiddata.c index 9a6ed9a..047e620 100644 --- a/hiddata.c +++ b/hiddata.c @@ -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[]