aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorsago35 <[email protected]>2023-07-06 21:54:32 +0900
committerRon Evans <[email protected]>2023-07-06 21:35:54 +0200
commit9126b9573711b1990f80ca1bca564c4886b8f8f2 (patch)
tree3ec8031ca7aa175169f40df66282d7f4a97c1456
parent3871b831af8ccbfc0088228ccbcdb7b898303b59 (diff)
downloadtinygo-9126b9573711b1990f80ca1bca564c4886b8f8f2.tar.gz
tinygo-9126b9573711b1990f80ca1bca564c4886b8f8f2.zip
machine/samd51: fix i2cTimeout was decreasing due to cache activation
-rw-r--r--src/machine/machine_atsamd51.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go
index 24ae89aab..de5491c88 100644
--- a/src/machine/machine_atsamd51.go
+++ b/src/machine/machine_atsamd51.go
@@ -1162,7 +1162,7 @@ const (
wireCmdStop = 3
)
-const i2cTimeout = 1000
+const i2cTimeout = 28000 // about 210us
// Configure is intended to setup the I2C interface.
func (i2c *I2C) Configure(config I2CConfig) error {