John-Wiliam/Src/service/button/service_buttonUtils.c
void updateButtonIntegral(service_buttonUtils_Button* button, unsigned char rawButtonValue) {
  if(rawButtonValue) {
    button->buttonIntegral++;
  }
  else {
    button->buttonIntegral = 0;
  }
}
// "integral" is just a fancy term for "addition".
// basically, add 1s to the counter until we hit the threshold value
"integral" is just a fancy term for "addition".
basically, add 1s to the counter until we hit the threshold value
" integral " is just a fancy term for " addition " . basically add 1s to the counter until we hit the threshold value
void updateButtonIntegral(service_buttonUtils_Button* button, unsigned char rawButtonValue) {
  if(rawButtonValue) {
    button->buttonIntegral++;
  }
  else {
    button->buttonIntegral = 0;
  }
}
void updateButtonIntegral ( service_buttonUtils_Button * button , unsigned char rawButtonValue ) { if ( rawButtonValue ) { button -> buttonIntegral ++ ; } else { button -> buttonIntegral = 0 ; } }
"integral" is just a fancy term for "addition".
" integral " is just a fancy term for " addition " .