You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use set_pullup to set leg 0 to high, using set_pullup(0, 1) but keep getting an error that:
self.set_bit(CHANNEL_INDEX_PULLUPS, input_index, direction)
NameError: name 'direction' is not defined
Looking into the core.py file on here, the set_pullup takes three parameters, self, input_index, and state. This state parameter is never used but an undefined (probably) variable direction, is then used to call self.set_bit. Should this be state instead?
Activity
Fixed error with . Fixes issue #14.
amos1969 commentedon Mar 8, 2016
Thanks for the speedy fix.