Use 16-bit length for TWI driver packet read/write requests for longer transfers.
This commit is contained in:
@@ -135,7 +135,7 @@ uint8_t TWI_ReadPacket(const uint8_t SlaveAddress,
|
||||
const uint8_t* InternalAddress,
|
||||
uint8_t InternalAddressLen,
|
||||
uint8_t* Buffer,
|
||||
uint8_t Length)
|
||||
uint16_t Length)
|
||||
{
|
||||
uint8_t ErrorCode;
|
||||
|
||||
@@ -175,7 +175,7 @@ uint8_t TWI_WritePacket(const uint8_t SlaveAddress,
|
||||
const uint8_t* InternalAddress,
|
||||
uint8_t InternalAddressLen,
|
||||
const uint8_t* Buffer,
|
||||
uint8_t Length)
|
||||
uint16_t Length)
|
||||
{
|
||||
uint8_t ErrorCode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user