From 6bddc0445d157ac2ad83f0988a989fbb934de7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4?= Date: Thu, 15 Dec 2016 09:46:15 +0800 Subject: [PATCH] suggest parentheses around '&&' within '||' --- App/PulsePort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App/PulsePort.cpp b/App/PulsePort.cpp index c3479b6c..1e527f34 100644 --- a/App/PulsePort.cpp +++ b/App/PulsePort.cpp @@ -76,7 +76,7 @@ void PulsePort::OnPress(InputPort& port, bool down) // 无论如何都更新最后一次时间,避免连续超长 Last = now; // 两次脉冲的间隔必须在一个范围内才算作有效 - if (Min > 0 && time < Min || Max>0 && time > Max) return; + if ((Min > 0 && time < Min) || (Max > 0 && time > Max)) return; Start = now; Time = time;