ceandre / radonreader

Read current radon level from RadonEye RD200
GNU General Public License v3.0
56 stars 27 forks source link

Python 3 compatibility #6

Open garciaargos opened 2 years ago

garciaargos commented 2 years ago

Nice script, thanks a lot. I just received a brand new RD200 and the compatibility with Python 3 can be fixed by changing line 49:

RadonEyeWrite.write(bytes("\x50"))

with:

RadonEyeWrite.write(bytes("\x50", "ascii"))

Unfortunately this wouldn't work with 2.7. But 2.7 has been End of Life for 2 years :-)