Thanks, Hartmut!
Alternatively, how about
addr1 = (address >> 8) & 0xff
which makes the bit arithmetic more explicit.
-tk
On Wed, Nov 27, 2019 at 9:25 AM Hartmut Schweidler <[email protected]>
wrote:
> Hallo Tom
>
> the driver fousb.py at line addr1 = (address // 256) & 0xff not addr1 =
> (address / 256) & 0xff
>
> the driver in
> https://github.com/hes19073/hesweewx/blob/master/bin/weewx/drivers/fousb.py
>
> works by python 3
>
> Gruss Hartmut
>
> Am Mittwoch, 27. November 2019 02:24:07 UTC+1 schrieb Tom Keffer:
>>
>> In the usual place <http://weewx.com/downloads/development_versions/>.
>>
>> What we really need is testing of the drivers, particularly under Python
>> 3. If you have something other than a Vantage, please install and check it
>> out!
>>
>> -tk
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-development/05c8c383-87e7-4fe5-8a99-b81b2913a738%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/05c8c383-87e7-4fe5-8a99-b81b2913a738%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-development/CAPq0zECfRgXMJc-P69iRsvMXV45i25%2B1U1yLwKJDcu1E%3D9wZ4w%40mail.gmail.com.