summaryrefslogtreecommitdiff
path: root/stmhal/i2c.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-02 15:02:57 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-02 15:02:57 +1100
commit6ab5512132d5b3d19a5bf029cb27829d41e76f8e (patch)
treed1dc10771b963ac3be632b2ba90e2499321d83ea /stmhal/i2c.c
parent1f549a3496ac543390a170a7eb7b242475063016 (diff)
stmhal: Use mp_hal_delay_ms instead of HAL_Delay.
Diffstat (limited to 'stmhal/i2c.c')
-rw-r--r--stmhal/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c
index 29c350d22..412a8e363 100644
--- a/stmhal/i2c.c
+++ b/stmhal/i2c.c
@@ -346,7 +346,7 @@ STATIC void i2c_reset_after_error(I2C_HandleTypeDef *i2c) {
// stop bit was generated and bus is back to normal
return;
}
- HAL_Delay(1);
+ mp_hal_delay_ms(1);
}
// bus was/is busy, need to reset the peripheral to get it to work again
i2c_deinit(i2c);