Browse Source

Fix warning

pull/5/head
Raphael Assenat 6 years ago
parent
commit
099127c512
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      hiddata.c

+ 3
- 2
hiddata.c 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[]


Loading…
Cancel
Save