diff options
author | Randy Mackay <rmackay9@yahoo.com> | 2014-12-09 19:29:55 +0900 |
---|---|---|
committer | Randy Mackay <rmackay9@yahoo.com> | 2014-12-30 13:43:13 +0900 |
commit | b8e818b38715b24889858c22ab0396a35df624c3 (patch) | |
tree | c8a2d1ed474465a96abe2d135ee46d84d1006574 /src/drivers/batt_smbus/batt_smbus.cpp | |
parent | df9547e9d36b4fd167f746dff1b809d2f4bfac3d (diff) | |
download | px4-firmware-b8e818b38715b24889858c22ab0396a35df624c3.tar.gz px4-firmware-b8e818b38715b24889858c22ab0396a35df624c3.tar.bz2 px4-firmware-b8e818b38715b24889858c22ab0396a35df624c3.zip |
batt_smbus: remove sleep before I2C transfer
Diffstat (limited to 'src/drivers/batt_smbus/batt_smbus.cpp')
-rw-r--r-- | src/drivers/batt_smbus/batt_smbus.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/batt_smbus/batt_smbus.cpp b/src/drivers/batt_smbus/batt_smbus.cpp index 89abcf838..494187ac0 100644 --- a/src/drivers/batt_smbus/batt_smbus.cpp +++ b/src/drivers/batt_smbus/batt_smbus.cpp @@ -303,9 +303,6 @@ BATT_SMBUS::read_reg(uint8_t reg, uint16_t &val) { uint8_t buff[2]; - // short sleep to improve reliability in cases of two consecutive reads - usleep(1); - // read from register int ret = transfer(®, 1, buff, 2); if (ret == OK) { |