From 14eddd74ab0bcf2c8b7c3ffc96f61cbf0b1ff99c Mon Sep 17 00:00:00 2001 From: paul eeepc Date: Fri, 25 Nov 2016 19:59:07 -0600 Subject: [PATCH] committing source code changes for main.hex commit that was just made axing usbFunctionRead --- firmware/source/usb.c | 10 +++++----- firmware/usbdrv/usbconfig.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/source/usb.c b/firmware/source/usb.c index e492392..6eb2373 100644 --- a/firmware/source/usb.c +++ b/firmware/source/usb.c @@ -139,11 +139,11 @@ USB_PUBLIC usbMsgLen_t usbFunctionSetup(uchar data[8]) { * In order to get usbFunctionRead() called, define USB_CFG_IMPLEMENT_FN_READ * to 1 in usbconfig.h and return 0xff in usbFunctionSetup().. */ -USB_PUBLIC uchar usbFunctionRead(uchar *data, uchar len) { - //this function should only get called if usbFunctionSetup returns USB_NO_MSG -// data[0] = 0xAA; - return len; -} +//USB_PUBLIC uchar usbFunctionRead(uchar *data, uchar len) { +// //this function should only get called if usbFunctionSetup returns USB_NO_MSG +//// data[0] = 0xAA; +// return len; +//} //USB_PUBLIC uchar usbFunctionWrite(uchar *data, uchar len); diff --git a/firmware/usbdrv/usbconfig.h b/firmware/usbdrv/usbconfig.h index e0b49ed..9815520 100644 --- a/firmware/usbdrv/usbconfig.h +++ b/firmware/usbdrv/usbconfig.h @@ -128,7 +128,7 @@ section at the end of this file). * transfers. Set it to 0 if you don't need it and want to save a couple of * bytes. */ -#define USB_CFG_IMPLEMENT_FN_READ 1 +#define USB_CFG_IMPLEMENT_FN_READ 0 /* Set this to 1 if you need to send control replies which are generated * "on the fly" when usbFunctionRead() is called. If you only want to send * data from a static buffer, set it to 0 and return the data from