From 2d16f210b96c48a598b3595ad55313c21deac06e Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 9 Aug 2023 18:52:15 +1000 Subject: [PATCH] lsm6dsox: Add missing time import. Driver calls time.sleep_ms() in one place. Found by Ruff checking F821. Signed-off-by: Angus Gratton --- micropython/drivers/imu/lsm6dsox/lsm6dsox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/micropython/drivers/imu/lsm6dsox/lsm6dsox.py b/micropython/drivers/imu/lsm6dsox/lsm6dsox.py index 1e4267a..1952c5b 100644 --- a/micropython/drivers/imu/lsm6dsox/lsm6dsox.py +++ b/micropython/drivers/imu/lsm6dsox/lsm6dsox.py @@ -46,6 +46,7 @@ while (True): import array from micropython import const +import time _CTRL3_C = const(0x12) _CTRL1_XL = const(0x10)