mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-12-11 21:14:34 +00:00
🎨 Fix comments, formatting
This commit is contained in:
parent
ab346f24ca
commit
cd9a23c4d0
@ -489,13 +489,10 @@ void MarlinUI::init() {
|
||||
ui.manual_move.menu_scale = REPRAPWORLD_KEYPAD_MOVE_STEP;
|
||||
ui.encoderPosition = dir;
|
||||
switch (axis) {
|
||||
case X_AXIS: { void lcd_move_x(); lcd_move_x(); } break;
|
||||
#if HAS_Y_AXIS
|
||||
case Y_AXIS: { void lcd_move_y(); lcd_move_y(); } break;
|
||||
#endif
|
||||
#if HAS_Z_AXIS
|
||||
case Z_AXIS: { void lcd_move_z(); lcd_move_z(); } break;
|
||||
#endif
|
||||
case X_AXIS:
|
||||
TERN_(HAS_Y_AXIS, case Y_AXIS:)
|
||||
TERN_(HAS_Z_AXIS, case Z_AXIS:)
|
||||
lcd_move_axis(axis);
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
@ -2141,9 +2141,9 @@ bool Planner::_populate_block(
|
||||
|
||||
/**
|
||||
* At this point at least one of the axes has more steps than
|
||||
* MIN_STEPS_PER_SEGMENT, ensuring the segment won't get dropped as
|
||||
* zero-length. It's important to not apply corrections
|
||||
* to blocks that would get dropped!
|
||||
* MIN_STEPS_PER_SEGMENT, ensuring the segment won't get dropped
|
||||
* as zero-length. It's important to not apply corrections to blocks
|
||||
* that would get dropped!
|
||||
*
|
||||
* A correction function is permitted to add steps to an axis, it
|
||||
* should *never* remove steps!
|
||||
|
@ -942,9 +942,7 @@ void reset_trinamic_drivers() {
|
||||
struct SanityHwSerialDetails { const char port[20]; uint32_t address; };
|
||||
#define TMC_HW_DETAIL_ARGS(A) TERN(A##_HAS_HW_SERIAL, STRINGIFY(A##_HARDWARE_SERIAL), ""), TERN0(A##_HAS_HW_SERIAL, A##_SLAVE_ADDRESS)
|
||||
#define TMC_HW_DETAIL(A) { TMC_HW_DETAIL_ARGS(A) }
|
||||
constexpr SanityHwSerialDetails sanity_tmc_hw_details[] = {
|
||||
MAPLIST(TMC_HW_DETAIL, ALL_AXIS_NAMES)
|
||||
};
|
||||
constexpr SanityHwSerialDetails sanity_tmc_hw_details[] = { MAPLIST(TMC_HW_DETAIL, ALL_AXIS_NAMES) };
|
||||
|
||||
// constexpr compatible string comparison
|
||||
constexpr bool str_eq_ce(const char * a, const char * b) {
|
||||
@ -969,9 +967,7 @@ void reset_trinamic_drivers() {
|
||||
struct SanitySwSerialDetails { int32_t txpin; int32_t rxpin; uint32_t address; };
|
||||
#define TMC_SW_DETAIL_ARGS(A) TERN(A##_HAS_SW_SERIAL, A##_SERIAL_TX_PIN, -1), TERN(A##_HAS_SW_SERIAL, A##_SERIAL_RX_PIN, -1), TERN0(A##_HAS_SW_SERIAL, A##_SLAVE_ADDRESS)
|
||||
#define TMC_SW_DETAIL(A) { TMC_SW_DETAIL_ARGS(A) }
|
||||
constexpr SanitySwSerialDetails sanity_tmc_sw_details[] = {
|
||||
MAPLIST(TMC_SW_DETAIL, ALL_AXIS_NAMES)
|
||||
};
|
||||
constexpr SanitySwSerialDetails sanity_tmc_sw_details[] = { MAPLIST(TMC_SW_DETAIL, ALL_AXIS_NAMES) };
|
||||
|
||||
constexpr bool sc_sw_done(size_t start, size_t end) { return start == end; }
|
||||
constexpr bool sc_sw_skip(int32_t txpin) { return txpin < 0; }
|
||||
|
Loading…
Reference in New Issue
Block a user