Fix logical operator error in tim_ic_set_input reported by hmjack2008