-
Notifications
You must be signed in to change notification settings - Fork 1
CURA-12495 revert method high speed printing #37
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
Conversation
Retract and Restart are also bead mode tags, so we cannot add our custom bead mode tags on top of these tags. (There was a firmware bug that was unintentionally blocking all tags from taking effect so we did not previously see the effects of this bug.)
This reverts commit c515836.
…move" This reverts commit b5e5c56.
…revert-Method-High-Speed-printing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy found issue(s) with the introduced code (1/1)
| Pause, // Command to allow for user defined pause. | ||
| }; | ||
|
|
||
| #define MB_BEAD_MODE_TAG(TAG_NAME) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function-like macro MB_BEAD_MODE_TAG used; consider a constexpr template function
| TAG_NAME##_0, \ | ||
| TAG_NAME##_1 | ||
|
|
||
| enum class Tag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum Tag uses a larger base type (int, size: 4 bytes) than necessary for its value set, consider using std::uint8_t (1 byte) as the base type to reduce its size
| { CommandType::WaitForTemperature, "wait_for_temperature" }, | ||
| { CommandType::Pause, "pause" } }) | ||
|
|
||
| #define MB_JTP_TAG(TAG_NAME, TAG_STR) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function-like macro MB_JTP_TAG used; consider a constexpr template function
| #define MB_JTP_TAG(TAG_NAME, TAG_STR) \ | ||
| { Tag::TAG_NAME, #TAG_STR } | ||
|
|
||
| #define MB_BEAD_MODE_TAG_DEF(TAG_NAME, TAG_STR) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function-like macro MB_BEAD_MODE_TAG_DEF used; consider a constexpr template function
| MB_JTP_TAG(TAG_NAME##_1, TAG_STR##_1) | ||
|
|
||
| NLOHMANN_JSON_SERIALIZE_ENUM( | ||
| Tag, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no header providing "dulcificum::botcmd::Tag" is directly included
| proto_path.emplace_back(move); | ||
| return; | ||
| } | ||
| else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use else after return
| else | |
| { | ||
| // NOTE: A move may only have a single bead mode tag | ||
| move->tags.emplace_back(botcmd::Tag::TravelMove); | ||
| proto_path.emplace_back(move); | ||
| return; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use else after return
| { | |
| // NOTE: A move may only have a single bead mode tag | |
| move->tags.emplace_back(botcmd::Tag::TravelMove); | |
| proto_path.emplace_back(move); | |
| return; | |
| } | |
| // NOTE: A move may only have a single bead mode tag | |
| move->tags.emplace_back(botcmd::Tag::TravelMove); | |
| proto_path.emplace_back(move); | |
| return; | |
| } | ||
| } | ||
| else if (state.feature_type == "SKIN") | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repeated branch body in conditional chain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy found issue(s) with the introduced code (1/1)
| { | ||
| move->tags.emplace_back(botcmd::Tag::WallInner_0); | ||
| } | ||
| else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repeated branch body in conditional chain
|
Commited on wrong branch, closing in favor of #38 |
CURA-12495
Contains #34