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

Misleading logging message #8

Open
DeeJay opened this issue Aug 18, 2014 · 1 comment
Open

Misleading logging message #8

DeeJay opened this issue Aug 18, 2014 · 1 comment

Comments

@DeeJay
Copy link

DeeJay commented Aug 18, 2014

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
Copy link
Owner

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

Any feedback welcome :)

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

2 participants