For Sofia StMicro gyro "95Hz" frequency option round error
goes to "0.0025", so increase the tolerance interval to +-0.01Hz;
Change-Id: I9413f9b833027657b07efa34e4f3909a268520d6
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
sr = strtod(cursor, NULL);
/* If this matches the selected rate, we're happy. Have some tolerance for rounding errors and avoid needless jumps to higher rates */
- if (fabs(arb_sampling_rate - sr) <= 0.001) {
+ if (fabs(arb_sampling_rate - sr) <= 0.01) {
arb_sampling_rate = sr;
break;
}