On Sunday, April 9, 2017 at 8:08:19 AM UTC-4, mwall wrote:
>
> [StdCalibrate]
>     [[Corrections]]
>         windDir = windDir + 180 if windDir < 180 else windDir - 180
>
> I think you could also use 

windDir = (windDir + 180) % 360


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to