pass-hal: tm2: Adjust the condition to improve the performance