mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
driver/sensor: update nbuffer to upper state
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -811,6 +811,7 @@ static int sensor_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
|||||||
if (arg >= lower->nbuffer)
|
if (arg >= lower->nbuffer)
|
||||||
{
|
{
|
||||||
lower->nbuffer = arg;
|
lower->nbuffer = arg;
|
||||||
|
upper->state.nbuffer = arg;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user