OnionIoT / Onion-Docs

Documentation for all things Onion
https://docs.onion.io
GNU General Public License v3.0
112 stars 65 forks source link

Greeting.py not properly works with python 3 #37

Open CaptainMich opened 7 years ago

CaptainMich commented 7 years ago

issue

I've solved this problem. Change follow line :

ledTriggerPath = "/sys/class/leds/%s/trigger"%(ledName.rstrip())

to:

ledTriggerPath = "/sys/class/leds/%s/trigger"%(ledName.rstrip()).decode("utf-8")