modify the api in sensor framework

This commit is contained in:
Wang_Weigen
2021-09-14 16:49:54 +08:00
parent cd9a3ee143
commit d77c1828b2
8 changed files with 53 additions and 54 deletions
@@ -52,7 +52,7 @@ static int SensorDeviceRead(struct SensorDevice *sdev, size_t len)
if (PrivWrite(sdev->fd, NULL, 0) != 1)
return -1;
UserTaskDelay(50);
PrivTaskDelay(50);
if (PrivRead(sdev->fd, sdev->buffer, len) != 1)
return -1;