Skip to content

Issues with set_pullup() #14

Closed
Closed

Description

@amos1969

Hi

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?

Cheers
Dave

Activity

  1. amos1969 commented on Mar 8, 2016

    @amos1969
    Author

    Thanks for the speedy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions