Skip to content

Conversation

@Ippyb
Copy link
Collaborator

@Ippyb Ippyb commented Oct 22, 2021

No description provided.

_servopin(0),
_counter(0),
_servo(s1),
_buttonstate(LOW),
Copy link

Choose a reason for hiding this comment

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

No trailing comma

Copy link
Collaborator

@Ayeeti Ayeeti left a comment

Choose a reason for hiding this comment

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

Code has been tested and works.

_buttonpin(0),
_servopin(0),
_counter(0),
_servo(s1),
Copy link

Choose a reason for hiding this comment

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

I don't like how we have to pass in an object here, but this has more to do with our object structure than with the initializer list. Before we change this, we need to consider how those structural changes will affect the rest of our code.

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