mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:23:34 +08:00
batt_smbus: remove sleep before I2C transfer
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user