Skip to content

Commit

Permalink
Update i2c_slave.c
Browse files Browse the repository at this point in the history
- Remove unnecessary log from I2CISRHandle() API
  • Loading branch information
Zhu Qi committed Jul 10, 2023
1 parent 6dfd170 commit f36dfe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Arduino_package/hardware/cores/ambd/i2c_slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ void I2CISRHandle(void *data)

/* Receive data till the RX FIFO is empty */
DBG("rx full, reading data out")
printf("receivedEvent triggered[%d]\r\n", obj->rx_datalength);
//printf("receivedEvent triggered[%d]\r\n", obj->rx_datalength);
DelayUs(1000);
while (I2C_CheckFlagState(obj->i2c_slave_dev->I2Cx, (BIT_IC_STATUS_RFNE | BIT_IC_STATUS_RFF))) {

u32 data = 0;
Expand Down

0 comments on commit f36dfe1

Please sign in to comment.