Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.7 compatibility fix #58

Open
puetro opened this issue Oct 27, 2021 · 0 comments
Open

Python 2.7 compatibility fix #58

puetro opened this issue Oct 27, 2021 · 0 comments

Comments

@puetro
Copy link

puetro commented Oct 27, 2021

i am using this module on Libreelec on RPI3. The lightweight system behind KODI has only python 2.7. I sneak for a while and found solution to run this library on this older python. problem is int vs float:

line 176
self._sleep((highpulses * self.tx_pulselength) / 1000000)

update:
self._sleep((float(highpulses) * self.tx_pulselength) / 1000000)

the same fix on line 178.

problem: python 2.7 result of this calculations is always 0. the results should be for example 0.00035. without float is unreal.

worker for me to send commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant