summaryrefslogtreecommitdiff
path: root/ports/stm32/accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/accel.c')
-rw-r--r--ports/stm32/accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/accel.c b/ports/stm32/accel.c
index ec7672782..488391c70 100644
--- a/ports/stm32/accel.c
+++ b/ports/stm32/accel.c
@@ -70,7 +70,7 @@ STATIC void accel_start(void) {
I2CHandle1.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
I2CHandle1.Init.OwnAddress1 = PYB_I2C_MASTER_ADDRESS;
I2CHandle1.Init.OwnAddress2 = 0xfe; // unused
- i2c_init(&I2CHandle1);
+ pyb_i2c_init(&I2CHandle1);
// turn off AVDD, wait 30ms, turn on AVDD, wait 30ms again
mp_hal_pin_low(MICROPY_HW_MMA_AVDD_PIN); // turn off