Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/iio_common: Fix HEX value parsing in sanitize_clamp()
Right now iio_reg and possibly other tools are broken. Registers and values are typically provided in hex values. strtoul() with base 10 returns error when hex values are parsed. So iio_reg will always clear register 0 which in most cases will reset the device. Signed-off-by: Michael Hennerich <[email protected]>
- Loading branch information