Skip to content

Commit c431305

Browse files
committed
I2C slave: Fix typos
1 parent 66f851a commit c431305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/arduino/stm32/twi.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ void HAL_I2C_ListenCpltCallback(I2C_HandleTypeDef *hi2c)
555555
i2c_t *obj = get_i2c_obj(hi2c);
556556

557557
/* Previous master transaction now ended, so inform upper layer if needed
558-
* then prepare for listeing to next request */
558+
* then prepare for listening to next request */
559559
if((obj->i2c_onSlaveReceive != NULL) &&
560560
(obj->slaveMode == SLAVE_MODE_RECEIVE)) {
561561
if(obj->slaveRxNbData != 0) {
@@ -598,7 +598,7 @@ void HAL_I2C_SlaveRxCpltCallback(I2C_HandleTypeDef *hi2c)
598598
void HAL_I2C_SlaveTxCpltCallback(I2C_HandleTypeDef *hi2c)
599599
{
600600
i2c_t *obj = get_i2c_obj(hi2c);
601-
/* reset transmit buffer size */
601+
/* Reset transmit buffer size */
602602
obj->i2cTxRxBufferSize = 0;
603603
}
604604

0 commit comments

Comments
 (0)