diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-06-12 07:51:37 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-06-12 07:51:44 (GMT) |
| commit | ab33027fff79d6de521201e5c594d5b8591c2cda (patch) | |
| tree | 3b5e7c030bcdc9aa0d1450cb88a19cb4ca238d9e /wasp/drivers/bma421.py | |
| parent | 93b3c2bf1ad19153daf9df3174a4076d97ac68bf (diff) | |
drivers: bma421: Reduce the post-reset delay
There nothing in the docs to give the delay time required after a
reset. Currently we use 200ms because that appears on some older
code for BMA423 but is removed in more recent drivers. 50ms is still
a long time (for hardware) and has held up in testing.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/drivers/bma421.py')
| -rw-r--r-- | wasp/drivers/bma421.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wasp/drivers/bma421.py b/wasp/drivers/bma421.py index aae4b59..1fb16dc 100644 --- a/wasp/drivers/bma421.py +++ b/wasp/drivers/bma421.py @@ -27,7 +27,7 @@ class BMA421: # Init, reset, wait for reset, enable I2C watchdog dev.init() dev.set_command_register(0xb6) - time.sleep(0.20) + time.sleep(0.05) dev.set_reg(bma42x.NV_CONFIG_ADDR, 6); # Configure the sensor for basic step counting |
