ccxtechnologies / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
0 stars 0 forks source link

INA260 driver: add ioctl for configuring number of samples #16

Closed CFD2 closed 3 years ago

CFD2 commented 3 years ago

This PR aims to add ioctl functionality to power sensor (ina260) driver to configure number of samples collected for averaging.

CFD2 commented 3 years ago

The change of the number of samples taken for averaging using ioctl does not persist. It changes back to what the value is in priv->config with every open and close file operation because ioctl command never updated the variable.