discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] PowerMate and Contour ShuttlePRO


From: cswiger
Subject: Re: [Discuss-gnuradio] PowerMate and Contour ShuttlePRO
Date: Wed, 18 May 2005 15:56:55 -0400 (EDT)

That's one more thing that breaks in python2.4 (2.3 issues the
FutureWarning about returning positive values for numbers over
sys.maxint)

powermate.py:

    def _open_device(self, filename):
        try:
            self.handle = os.open(filename, os.O_RDWR)
            if self.handle < 0:
                return False

            # read event device name
            name = fcntl.ioctl(self.handle, 0x80ff4506, chr(0) * 256)
            name = name.replace(chr(0), '')


---------------------


the 0x80ff4506 is no longer valid. Change it to -2130754298 or if you
prefer -0x7f00bafa

>>>sys.maxint
2147483647
>>> mux = 0x80000000
>>> mux
2147483648L  <-- no longer an int

--Chuck





reply via email to

[Prev in Thread] Current Thread [Next in Thread]