cymplecy / scratch_gpio

Code for scratch_gpio_handler
42 stars 23 forks source link

Misleading logging message #8

Open DeeJay opened 10 years ago

DeeJay commented 10 years ago

Cosmetic only.

In file scratch_gpio / scratchgpio_handler5.py

In class ScratchSender Define function broadcast_pin_update at about line 322: elif "pizazz" in ADDON:

print pin

try: sensor_name = ["left","right",][([13,12].index(pin))] except: print "pi2go input out of range" ### <<< - WRONG ADDON NAME HERE sensor_name = "pin" + str(pin) pass sensorValue = ("on","off")[value == 1]

It is only a human-readable trace, not functional code, but I think perhaps it should say print "pizazz input out of range"

cymplecy commented 9 years ago

Thanks for this - only just seen the notice ! :)

Any feedback welcome :)