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

Use waitlock flag in lock() #14

Open
razed11 opened this issue Feb 17, 2016 · 0 comments
Open

Use waitlock flag in lock() #14

razed11 opened this issue Feb 17, 2016 · 0 comments

Comments

@razed11
Copy link

razed11 commented Feb 17, 2016

lock() does not wait the lock timeout before failing. The waitlock flag (bit 0) is not being set. Is there a reason why this flag would never be set? If there is, perhaps add a default wait = False argument?

    def lock(self):
        "Send lock command"
        if self.link is None:
            self.open()

        # flags = 0

        # TODO: Added waitlock flag.
        flags = 1 

        error = self.client.device_lock(self.link,
                                        flags,
                                        self._lock_timeout_ms)

        if error:
            raise Vxi11Exception(error, 'lock')
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

1 participant