Firmata: Reducing wait time
Signed-off-by: Abhishek Malik <abhishek.malik@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
4b22a923cf
commit
17b147ba82
@@ -190,7 +190,7 @@ mraa_firmata_i2c_wait(int addr, int reg)
|
||||
if (i > 1000) {
|
||||
return MRAA_ERROR_UNSPECIFIED;
|
||||
}
|
||||
usleep(500);
|
||||
usleep(50);
|
||||
if (pthread_spin_lock(&firmata_dev->lock) != 0) return MRAA_ERROR_UNSPECIFIED;
|
||||
res = firmata_dev->i2cmsg[addr][reg];
|
||||
if (pthread_spin_unlock(&firmata_dev->lock) != 0) return MRAA_ERROR_UNSPECIFIED;
|
||||
|
||||
Reference in New Issue
Block a user