tpd_default.c 222 B

123456789101112131415
  1. #include "tpd.h"
  2. /* #ifndef TPD_CUSTOM_TREMBLE_TOLERANCE */
  3. int tpd_trembling_tolerance(int t, int p)
  4. {
  5. if (t > 5 || p > 120)
  6. return 200;
  7. if (p > 90)
  8. return 64;
  9. if (p > 80)
  10. return 36;
  11. return 26;
  12. }
  13. /* #endif */