Rename I2C_MESSAGE_MAX_LENGTH to I2C_MESSAGE_MAX_PAYLOAD_LENGTH.

This commit is contained in:
László Monda
2017-10-01 21:52:41 +02:00
parent 4ade25d739
commit b443b56357
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ status_t I2cAsyncReadMessage(uint8_t i2cAddress, i2c_message_t *message)
masterTransfer.slaveAddress = i2cAddress;
masterTransfer.direction = kI2C_Read;
masterTransfer.data = (uint8_t*)message;
masterTransfer.dataSize = I2C_MESSAGE_MAX_LENGTH;
masterTransfer.dataSize = I2C_MESSAGE_MAX_PAYLOAD_LENGTH;
I2cMasterHandle.userData = (void*)1;
return I2C_MasterTransferNonBlocking(I2C_MAIN_BUS_BASEADDR, &I2cMasterHandle, &masterTransfer);
}