suggest parentheses around '&&' within '||'

This commit is contained in:
大石头 2016-12-15 09:46:15 +08:00
parent 38db41c6ba
commit 6bddc0445d
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ void PulsePort::OnPress(InputPort& port, bool down)
// 无论如何都更新最后一次时间,避免连续超长 // 无论如何都更新最后一次时间,避免连续超长
Last = now; Last = now;
// 两次脉冲的间隔必须在一个范围内才算作有效 // 两次脉冲的间隔必须在一个范围内才算作有效
if (Min > 0 && time < Min || Max>0 && time > Max) return; if ((Min > 0 && time < Min) || (Max > 0 && time > Max)) return;
Start = now; Start = now;
Time = time; Time = time;