In practice, this is just returning true all the time.  It also doesn't really matter since there's a vtaskdelay at the bottom of the loop which is rate-limiting the task to the appropriate inter-measurement delay.  I'll fix the logic anyway.