Ah, you are correct. Good catch. The last few far edge values are guaranteed to be 0 on all but the older 17" devices so I didn't see anything askew. Thanks, Clinton On 03/09/2014 08:54 AM, Henrik Rydberg wrote: > Hi Clinton, > >> Use smoothed version of sensor array data to calculate movement and add weight >> to prior values when calculating average. This gives more granular and more >> predictable movement. > > Great patch, just one thing: > >> + /* Handle other edge. */ >> + smooth_tmp[nb_sensors + 7] = (smooth[nb_sensors + 7] + smooth[nb_sensors + 6]) >> 1; >> + >> + for (i = 0; i < nb_sensors + 7; i++) >> + smooth[i] = smooth_tmp[i]; > > Should be "< nb_sensors + 8" here, no? > > Thanks, > Henrik > -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html