From f36dfe13a7a0f9d844a8f5d13139f1eb674d98e2 Mon Sep 17 00:00:00 2001 From: Zhu Qi Date: Mon, 10 Jul 2023 14:21:54 +0800 Subject: [PATCH] Update i2c_slave.c - Remove unnecessary log from I2CISRHandle() API --- Arduino_package/hardware/cores/ambd/i2c_slave.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Arduino_package/hardware/cores/ambd/i2c_slave.c b/Arduino_package/hardware/cores/ambd/i2c_slave.c index 0925f139..ae4c339e 100644 --- a/Arduino_package/hardware/cores/ambd/i2c_slave.c +++ b/Arduino_package/hardware/cores/ambd/i2c_slave.c @@ -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;