Skip to content

Commit

Permalink
Repair display throttling (MarlinFirmware#14960)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnHardt authored and thinkyhead committed Aug 17, 2019
1 parent fecf808 commit 587d4a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Marlin/src/module/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Marlin/src/module/planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 587d4a6

Please sign in to comment.