modify the api in sensor framework
This commit is contained in:
@@ -81,7 +81,7 @@ static int SensorDeviceRead(struct SensorDevice *sdev, size_t len)
|
||||
PrivRead(sdev->fd, &tmp, 1);
|
||||
if ((tmp == 0xFE) || (timeout >= 1000))
|
||||
break;
|
||||
UserTaskDelay(10);
|
||||
PrivTaskDelay(10);
|
||||
++timeout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user