Closed laykuanloon closed 7 years ago
@ceolin iio gyroscope sample code is in #2334. This PR #2238 is for iio magnetometer sample code. I commit iio magnetometer sample code on top of iio gyroscope sample code because the 2 sample is in the same make folder.
@laykuanloon there are lot of places where you are comparing floats/doubles == 0
i think the correct way to do this would be use fpclassify(value) == FP_ZERO
.
What do you think ?
@ceolin, thanks for your input.
@ceolin, please help to check the code and merge if it's ok. Thanks
merged, thanks