ul-gh / PiPyADC

Python classes for interfacing Texas Instruments analog-to-digital converters with the Raspberry Pi
GNU Lesser General Public License v2.1
69 stars 27 forks source link

Cast the delays to int in delayMicroseconds methods #9

Closed adn05 closed 6 years ago

adn05 commented 6 years ago

Cast the delays to int in delayMicroseconds methods of WiringPi to avoid TypeError,

ul-gh commented 6 years ago

Hi, thanks for your work, I just now added a cast of the constant values in source file pipyadc.py which should be less runtime overhead. Commit is b6dedb4 for the pigpio branch. HTH, Ulrich