Guest User

Untitled

a guest
Dec 11th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. void checkUnderVoltage(void)
  2. {
  3. static uint16_t warningBounce = 0;
  4. uint16_t vol = 0;
  5.  
  6. vol = getVoltage();
  7.  
  8. if(vol > 6)
  9. {
  10. warningBounce++;
  11. }
  12. else
  13. {
  14. warningBounce = 0;
  15. }
  16. }
Add Comment
Please, Sign In to add comment