From 6b9fb9edace1b0441eb8d5e9ee8e5c6ec1287554 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 8 Sep 2023 13:45:05 +1000 Subject: Support retries for samd and touchwheel i2c --- src/drivers/include/i2c.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers/include') diff --git a/src/drivers/include/i2c.hpp b/src/drivers/include/i2c.hpp index 213fb7b3..0dc1e7c0 100644 --- a/src/drivers/include/i2c.hpp +++ b/src/drivers/include/i2c.hpp @@ -41,7 +41,7 @@ class I2CTransaction { * ESP_ERR_INVALID_STATE I2C driver not installed or not in master mode. * ESP_ERR_TIMEOUT Operation timeout because the bus is busy. */ - esp_err_t Execute(i2c_port_t port = I2C_NUM_0); + esp_err_t Execute(int num_retries = 0); /* * Enqueues a start condition. May also be used for repeated start -- cgit v1.2.3