mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 04:29:34 +00:00
Cleanup spacing, commentary
This commit is contained in:
parent
e2871f0dcd
commit
c1d6d24b9d
@ -10288,7 +10288,7 @@ inline void gcode_M502() {
|
||||
#if HAS_TRINAMIC
|
||||
#if ENABLED(TMC_DEBUG)
|
||||
inline void gcode_M122() {
|
||||
if (parser.seen('S'))
|
||||
if (parser.seen('S'))
|
||||
tmc_set_report_status(parser.value_bool());
|
||||
else
|
||||
tmc_report_all();
|
||||
|
@ -530,8 +530,8 @@ class Planner {
|
||||
static block_t* get_current_block() {
|
||||
if (blocks_queued()) {
|
||||
block_t * const block = &block_buffer[block_buffer_tail];
|
||||
|
||||
// If the trapezoid of this block has to be recalculated, it's not save to execute it.
|
||||
|
||||
// If the block has no trapezoid calculated, it's unsafe to execute.
|
||||
if (movesplanned() > 1) {
|
||||
block_t* next = &block_buffer[next_block_index(block_buffer_tail)];
|
||||
if (TEST(block->flag, BLOCK_BIT_RECALCULATE) || TEST(next->flag, BLOCK_BIT_RECALCULATE))
|
||||
@ -539,7 +539,7 @@ class Planner {
|
||||
}
|
||||
else if (TEST(block->flag, BLOCK_BIT_RECALCULATE))
|
||||
return NULL;
|
||||
|
||||
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
block_buffer_runtime_us -= block->segment_time_us; // We can't be sure how long an active block will take, so don't count it.
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user