/* Set minimum number of taps needed for an interrupt.  */
int dmp_set_tap_count(unsigned char min_taps)
/* Set minimum number of taps needed for an interrupt.  */
int dmp_set_tap_count(unsigned char min_taps)
{
    unsigned char tmp;
    if (min_taps < 1)
        min_taps = 1;
    else if (min_taps > 4)
        min_taps = 4;
    tmp = min_taps - 1;
    return mpu_write_mem(D_1_79, 1, &tmp);
}