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

The dc and stepper motors 0 are always initialised upon a call to get… #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

audetto
Copy link

@audetto audetto commented Aug 26, 2015

…Motor().

A value of 0 is used at the same time to signal non initialised and the number of the motor.

As there is no need for a motor to know which number it is, we can simply use a bool 0/1.

Andrea

…Motor().

A value of 0 is used at the same time to signal non initialised and the number of the motor.

As there is no need for a motor to know which number it is, we can simply use a bool 0/1.

Andrea
@caternuson
Copy link
Contributor

@ladyada This LGTM. Do you remember any reason for wanting an ID number for each instance? This does replace that with something else (bool).

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.

2 participants