scratch_gpio icon indicating copy to clipboard operation
scratch_gpio copied to clipboard

Misleading logging message

Open DeeJay opened this issue 11 years ago • 1 comments

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"

DeeJay avatar Aug 18 '14 17:08 DeeJay

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

Any feedback welcome :)

cymplecy avatar Jan 19 '15 16:01 cymplecy