Rename I2C_BUFFER_MAX_LENGTH to I2C_MESSAGE_MAX_TOTAL_LENGTH.

This commit is contained in:
László Monda
2017-10-01 21:55:37 +02:00
parent b443b56357
commit 1b1111e9da
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ static void i2cSlaveCallback(I2C_Type *base, i2c_slave_transfer_t *xfer, void *u
((uint8_t*)&RxMessage)[rxMessagePos++] = byteIn;
} else {
rxMessagePos = 0;
memset(&RxMessage, 0, I2C_BUFFER_MAX_LENGTH);
memset(&RxMessage, 0, I2C_MESSAGE_MAX_TOTAL_LENGTH);
}
xfer->data = (uint8_t*)&byteIn;