Repair display throttling (#14960)

This commit is contained in:
AnHardt 2019-08-17 04:17:10 +02:00 committed by Scott Lahteine
parent fecf808d80
commit 587d4a6373
2 changed files with 4 additions and 1 deletions

View File

@ -2037,6 +2037,7 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
block_buffer_runtime_us += segment_time_us;
block->segment_time_us = segment_time_us;
if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
#endif

View File

@ -155,7 +155,9 @@ typedef struct block_t {
uint8_t valve_pressure, e_to_p_pressure;
#endif
uint32_t segment_time_us;
#if HAS_SPI_LCD
uint32_t segment_time_us;
#endif
} block_t;