Move Enums into AtCore Object
ClosedPublic

Authored by rizzitello on Jun 23 2017, 7:09 PM.

Details

Summary

This Is to address the comments on review board Here

PrinterState AXIS and MeasuramentUnits enums inside AtCore (or make them C++11 "enum class").

All enums are now members of AtCore

Also note how PrinterState AXIS MeasuramentUnits is not consistent naming

I have renamed them to AtCore::STATES AtCore:AXIES and AtCore::UNITS to have a consistent naming scheme.

Test Plan

I have tested this on my printer to ensure nothing was broken in this process.

Diff Detail

Repository
R232 AtCore
Branch
fixEnum
Lint
No Linters Available
Unit
No Unit Test Coverage
rizzitello created this revision.Jun 23 2017, 7:09 PM
rizzitello updated this revision to Diff 15804.Jun 23 2017, 7:58 PM

Adjust enum names

rizzitello updated this revision to Diff 15805.Jun 23 2017, 8:01 PM

Updating D6363: Move Enums into AtCore Object

rizzitello edited the summary of this revision. (Show Details)Jun 23 2017, 8:08 PM
rizzitello edited the test plan for this revision. (Show Details)
rizzitello added a subscriber: Atelier: AtCore.
aacid edited edge metadata.Jun 25 2017, 10:57 AM

If you think this is a good solution, i'm happy (except for the typo)

src/atcore.h
59

Seems the correct plural of Axis is Axes https://www.merriam-webster.com/dictionary/axis

rizzitello edited the summary of this revision. (Show Details)
rizzitello edited the test plan for this revision. (Show Details)
  • Fix typos
rizzitello updated this revision to Diff 15876.Jun 26 2017, 1:42 PM
  • Rebase on master
patrickelectric accepted this revision.Jun 26 2017, 2:18 PM
This revision is now accepted and ready to land.Jun 26 2017, 2:18 PM
tcanabrava accepted this revision.Jun 26 2017, 2:28 PM
rizzitello updated this revision to Diff 15879.Jun 26 2017, 2:46 PM
rizzitello marked an inline comment as done.
  • Fix base
This revision was automatically updated to reflect the committed changes.