From 83e19419b9019fea92daa0b46c53b8da6fc87648 Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Mon, 22 Apr 2024 08:59:55 +0900 Subject: [PATCH] fix I2C read timeout error when interrupt. ( #88 ) --- src/lgfx/v1/platforms/esp32/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lgfx/v1/platforms/esp32/common.cpp b/src/lgfx/v1/platforms/esp32/common.cpp index e8ac11a..fcfbc80 100644 --- a/src/lgfx/v1/platforms/esp32/common.cpp +++ b/src/lgfx/v1/platforms/esp32/common.cpp @@ -1384,8 +1384,8 @@ namespace lgfx i2c_set_cmd(dev, 0, i2c_cmd_read, len, last_nack && length == 0); i2c_set_cmd(dev, 1, i2c_cmd_end, 0); updateDev(dev); - dev->ctr.trans_start = 1; dev->int_clr.val = intmask; + dev->ctr.trans_start = 1; do {