Skip to content

Added a function to list all the connected sensors.#294

Merged
ddemidov merged 3 commits intoev3dev:developfrom
craigsammisutherland:develop
Feb 6, 2017
Merged

Added a function to list all the connected sensors.#294
ddemidov merged 3 commits intoev3dev:developfrom
craigsammisutherland:develop

Conversation

@craigsammisutherland
Copy link
Copy Markdown
Contributor

Based on #293.

Comment thread ev3dev/core.py Outdated
address=['in1', 'in3']. When argument value is a list,
then a match against any entry of the list is enough.
"""
classpath = abspath(Device.DEVICE_ROOT_PATH + '/' + Sensor.SYSTEM_CLASS_NAME)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this variable (and the other equivalent one) to class_path? The current one confuses me because it reads like Java's classpath.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've changed the variable name.

@ddemidov ddemidov merged commit ad3142e into ev3dev:develop Feb 6, 2017
@ddemidov
Copy link
Copy Markdown
Member

ddemidov commented Feb 6, 2017

Thanks!

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.

4 participants