Browse Source

Repair display throttling (#14960)

AnHardt 5 years ago
parent
commit
587d4a6373
2 changed files with 4 additions and 1 deletions
  1. 1
    0
      Marlin/src/module/planner.cpp
  2. 3
    1
      Marlin/src/module/planner.h

+ 1
- 0
Marlin/src/module/planner.cpp View File

2037
     if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
2037
     if (was_enabled) DISABLE_STEPPER_DRIVER_INTERRUPT();
2038
 
2038
 
2039
     block_buffer_runtime_us += segment_time_us;
2039
     block_buffer_runtime_us += segment_time_us;
2040
+    block->segment_time_us = segment_time_us;
2040
 
2041
 
2041
     if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
2042
     if (was_enabled) ENABLE_STEPPER_DRIVER_INTERRUPT();
2042
   #endif
2043
   #endif

+ 3
- 1
Marlin/src/module/planner.h View File

155
     uint8_t valve_pressure, e_to_p_pressure;
155
     uint8_t valve_pressure, e_to_p_pressure;
156
   #endif
156
   #endif
157
 
157
 
158
-  uint32_t segment_time_us;
158
+  #if HAS_SPI_LCD
159
+    uint32_t segment_time_us;
160
+  #endif
159
 
161
 
160
 } block_t;
162
 } block_t;
161
 
163
 

Loading…
Cancel
Save