Skip to content

Commit

Permalink
fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Aug 22, 2024
1 parent 60e755c commit 8880fa4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion stm32-modules/include/common/core/gcode_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ auto parse_value(const Input& start_from, Limit stop_at)
// separating it from the next gcode or an \r\n terminator sequence
return std::make_pair(std::optional<ValueType>(), start_from);
}
const auto* after = working + (after_ptr - &(*working));
auto after = working + (after_ptr - &(*working));
return std::make_pair(std::optional<ValueType>(value), after);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,19 +269,19 @@ struct MoveMotorAtFrequency {
static constexpr auto prefix = std::array{'X'};
static constexpr bool required = false;
bool present = false;
char value = 0;
int value = 0;
};
struct ZArg {
static constexpr auto prefix = std::array{'Z'};
static constexpr bool required = false;
bool present = false;
char value = 0;
int value = 0;
};
struct LArg {
static constexpr auto prefix = std::array{'L'};
static constexpr bool required = false;
bool present = false;
char value = 0;
int value = 0;
};
struct StepArg {
static constexpr auto prefix = std::array{'S'};
Expand Down

0 comments on commit 8880fa4

Please sign in to comment.