use unsigned char instead of char for error string

use #if 0 instead of // for remove code
This commit is contained in:
hathach
2013-01-22 18:19:05 +07:00
parent 3ffda2033a
commit b5207ff146
4 changed files with 12 additions and 8 deletions

View File

@@ -188,12 +188,14 @@ uint16_t tusb_cdc_recv(uint8_t* buffer, uint16_t max)
return fifo_read_n(&ffRX, buffer, max);
}
#if 0
// ROM driver bug: cannot hook this to CIC_GetRequest
// Need this to implement GetLineCode & detect
//ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length)
//{
// return LPC_OK;
//}
ErrorCode_t CDC_Control_GetRequest(USBD_HANDLE_T hUsb, USB_SETUP_PACKET *pSetup, uint8_t **pBuffer, uint16_t *length)
{
return LPC_OK;
}
#endif
/**************************************************************************/
/*!