the function call just partly work

Hi PeterH,
Recently i am annoyed by the algorithm which how to judge a real press. Could you pls tell me more details or what your suggestion?

Thanks