mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-01-30 14:50:10 -05:00
Fix warning
This commit is contained in:
parent
a6266561e1
commit
099127c512
@ -19,6 +19,7 @@
|
|||||||
#include "requests.h"
|
#include "requests.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "hiddata.h"
|
#include "hiddata.h"
|
||||||
|
#include "usbpad.h"
|
||||||
#include "bootloader.h"
|
#include "bootloader.h"
|
||||||
#include "gcn64_protocol.h"
|
#include "gcn64_protocol.h"
|
||||||
#include "version.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)
|
static void hiddata_processCommandBuffer(void)
|
||||||
{
|
{
|
||||||
unsigned char channel;
|
//unsigned char channel;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
int i;
|
int i;
|
||||||
#endif
|
#endif
|
||||||
@ -94,7 +95,7 @@ static void hiddata_processCommandBuffer(void)
|
|||||||
case RQ_GCN64_RAW_SI_COMMAND:
|
case RQ_GCN64_RAW_SI_COMMAND:
|
||||||
// TODO : Range checking
|
// TODO : Range checking
|
||||||
// cmdbuf[] : RQ, CHN, LEN, data[]
|
// 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_len = gcn64_transaction(cmdbuf+3, cmdbuf[2], cmdbuf + 3, CMDBUF_SIZE-3);
|
||||||
cmdbuf[2] = cmdbuf_len;
|
cmdbuf[2] = cmdbuf_len;
|
||||||
cmdbuf_len += 3; // Answer: RQ, CHN, LEN, data[]
|
cmdbuf_len += 3; // Answer: RQ, CHN, LEN, data[]
|
||||||
|
Loading…
Reference in New Issue
Block a user