summaryrefslogtreecommitdiff
path: root/src/drivers/include/i2c.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-08 13:45:05 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-08 13:45:05 +1000
commit6b9fb9edace1b0441eb8d5e9ee8e5c6ec1287554 (patch)
tree8f4cd3d5d9eeddb015b4ec97f14e004e9e701dfb /src/drivers/include/i2c.hpp
parent493a70b07c98787bf247e577d17d6b1a3e16a084 (diff)
downloadtangara-fw-6b9fb9edace1b0441eb8d5e9ee8e5c6ec1287554.tar.gz
Support retries for samd and touchwheel i2c
Diffstat (limited to 'src/drivers/include/i2c.hpp')
-rw-r--r--src/drivers/include/i2c.hpp2
1 files changed, 1 insertions, 1 deletions
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