committing source code changes for main.hex commit that was just made axing usbFunctionRead

This commit is contained in:
paul eeepc 2016-11-25 19:59:07 -06:00
parent 7aab299b66
commit 14eddd74ab
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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