Skip to content

probe: jlink: Fix possibly misleading is_open status#1930

Open
dottspina wants to merge 1 commit intopyocd:developfrom
dottspina:jlink-fix-is_open
Open

probe: jlink: Fix possibly misleading is_open status#1930
dottspina wants to merge 1 commit intopyocd:developfrom
dottspina:jlink-fix-is_open

Conversation

@dottspina
Copy link
Copy Markdown

It was probably a typo: in JLinkProbe, the is_open property answers the JLink.opened method itself instead of its return value.

As a result, is_open always evaluates to True in boolean contexts, and may report misleading status.

Thanks.

It was probably a typo: in JLinkProbe, the is_open property
answers the JLink.opened method instead of its return value.

As a result, is_open always evaluates to True in boolean contexts,
and may report misleading status.
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

Successfully merging this pull request may close these issues.

1 participant