if ((uS / US_ROUNDTRIP_CM) != 0) && ((uS / US_ROUNDTRIP_CM) > 50)
Why not just say
if (uS / US_ROUNDTRIP_CM > 50)
&& binds lower than comparisons, comparisons bind lower than arithmetic operators.
if ((uS / US_ROUNDTRIP_CM) != 0) && ((uS / US_ROUNDTRIP_CM) > 50)
Why not just say
if (uS / US_ROUNDTRIP_CM > 50)
&& binds lower than comparisons, comparisons bind lower than arithmetic operators.