mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
minor
This commit is contained in:
parent
452fee3d61
commit
1e8f39da58
2 changed files with 2 additions and 2 deletions
2
adk.h
2
adk.h
|
@ -105,7 +105,7 @@ public:
|
||||||
const char* uri,
|
const char* uri,
|
||||||
const char* serial);
|
const char* serial);
|
||||||
|
|
||||||
// Methods for recieving and sending data
|
// Methods for receiving and sending data
|
||||||
uint8_t RcvData(uint16_t *nbytesptr, uint8_t *dataptr);
|
uint8_t RcvData(uint16_t *nbytesptr, uint8_t *dataptr);
|
||||||
uint8_t SndData(uint16_t nbytes, uint8_t *dataptr);
|
uint8_t SndData(uint16_t nbytes, uint8_t *dataptr);
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ bool ConfigDescParser<CLASS_ID, SUBCLASS_ID, PROTOCOL_ID, MASK>::ParseDescriptor
|
||||||
dscrType = *((uint8_t*)theBuffer.pValue + 1);
|
dscrType = *((uint8_t*)theBuffer.pValue + 1);
|
||||||
stateParseDescr = 2;
|
stateParseDescr = 2;
|
||||||
case 2:
|
case 2:
|
||||||
// This is a sort of hack. Assuming that two bytes are allready in the buffer
|
// This is a sort of hack. Assuming that two bytes are already in the buffer
|
||||||
// the pointer is positioned two bytes ahead in order for the rest of descriptor
|
// the pointer is positioned two bytes ahead in order for the rest of descriptor
|
||||||
// to be read right after the size and the type fields.
|
// to be read right after the size and the type fields.
|
||||||
// This should be used carefuly. varBuffer should be used directly to handle data
|
// This should be used carefuly. varBuffer should be used directly to handle data
|
||||||
|
|
Loading…
Reference in a new issue