[chirp_devel] [patch modified] doesn't recognize multiple comm ports in Win 7 - issue #2783
Alex K
Mon Oct 12 13:51:01 PDT 2015
No, no problems. I checked in his Win7x32. Chirp reads and writes to the
ports greater COM9. Initialize the port goes up. win32file.CreateFile()
2015-10-12 23:37 GMT+03:00 Dan Smith <dsmith at danplanet.com>:
> > diff -r f8d7a8b1f4f5 -r 853c2aa66578 chirp/platform.py
> > --- a/chirp/platform.py Thu Oct 08 12:02:04 2015 +0300
> > +++ b/chirp/platform.py Sun Oct 11 10:50:10 2015 +0300
> > @@ -29,7 +29,7 @@
> >
> > ports = []
> > for i in range(1, 257):
> > - portname = "COM%i" % i
> > + portname = "\\\\.\\COM%i" % i
> > try:
> > mode = win32con.GENERIC_READ | win32con.GENERIC_WRITE
> > port = \
> > @@ -40,6 +40,8 @@
> > win32con.OPEN_EXISTING,
> > 0,
> > None)
> > + if portname.startswith("\\"):
> > + portname = portname[4:]
>
> Won't this cause us to detect them, but then fail to open them? Or is
> the failure just in the detection code above?
>
> --Dan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://intrepid.danplanet.com/pipermail/chirp_devel/attachments/20151012/4f2b8d0f/attachment-0001.html
More information about the chirp_devel
mailing list