John-Wiliam/Src/service/button/service_buttonUtils.c
void clampButtonIntegral(service_buttonUtils_Button* button) {
  if(button->buttonIntegral > BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED) {
    button->buttonIntegral = BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED;
  }
}
// make sure the integral doesn't overflow
make sure the integral doesn't overflow
make sure the integral doesn ' t overflow
void clampButtonIntegral(service_buttonUtils_Button* button) {
  if(button->buttonIntegral > BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED) {
    button->buttonIntegral = BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED;
  }
}
void clampButtonIntegral ( service_buttonUtils_Button * button ) { if ( button -> buttonIntegral > BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED ) { button -> buttonIntegral = BUTTON_INTEGRAL_VALUE_BEFORE_CONSIDERED_PRESSED ; } }
make sure the integral doesn't overflow
make sure the integral doesn ' t overflow