driver/sensor: update nbuffer to upper state
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
aa34885c8b
commit
fa10cf7cdf
@ -811,6 +811,7 @@ static int sensor_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
|
||||
if (arg >= lower->nbuffer)
|
||||
{
|
||||
lower->nbuffer = arg;
|
||||
upper->state.nbuffer = arg;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user