From the old Diff
- Use Teareny opperation to make code more readable. Simplify Error Message
New in this Diff
- Rename GCodeCommands::toString -> GCodeCommands::description.
- Improve Error Message for when a Gcode is needed.
From the old Diff
New in this Diff
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
For exactly the same reason we were checking the toString calls to have full test coverage.
@tcanabrava make sense to do a test of hardcoded text string ?
src/gcodecommands.cpp | ||
---|---|---|
94 | QString code("G" + QString::number(gcode)); |
src/gcodecommands.cpp | ||
---|---|---|
107 | We don't want to return any gcode we have not added support for . This does not prevent anyone from using the code but does stop them from getting any code via GCode functions . There is no good default either some code will work without options and some wont. |