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>
This commit is contained in:
parent
93b3c2bf1a
commit
ab33027fff
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue