Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Your DigitalOutPin is protected - it should be public to match the base class definition and allow access outside the class. Commented Jun 19, 2016 at 17:57
  • Especially in embedded context, you might want to take advantage of final, which can enable the compiler to produce more efficient binary code: en.cppreference.com/w/cpp/language/final Commented Jun 19, 2016 at 18:44
  • From the same POV, if you can avoid having VMT and runtime lookup, it's definitely more efficient. One way to do that could be to turn is_a relationships into has_a ones. Commented Jun 19, 2016 at 18:47
  • @Majenko Sounds like that could be it! Originally I had another public method that called that one, and likely it broke then. I will try that tonight. Commented Jun 19, 2016 at 19:56
  • @IgorStoppa Very good suggestion. Thanks. Will chec out that link tonight. Commented Jun 19, 2016 at 19:57