mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-06 14:37:27 -06:00
🧑💻 Singleton notation
This commit is contained in:
parent
fad7bc66e9
commit
54c1a1df4e
2 changed files with 3 additions and 3 deletions
|
@ -770,7 +770,7 @@ void Max7219::idle_tasks() {
|
|||
|
||||
#ifdef MAX7219_DEBUG_SLOWDOWN
|
||||
static uint8_t last_slowdown_count = 0;
|
||||
const uint8_t slowdown_count = Planner::slowdown_count;
|
||||
const uint8_t slowdown_count = planner.slowdown_count;
|
||||
if (slowdown_count != last_slowdown_count) {
|
||||
mark16(MAX7219_DEBUG_SLOWDOWN, last_slowdown_count, slowdown_count, &row_change_mask);
|
||||
last_slowdown_count = slowdown_count;
|
||||
|
|
|
@ -2933,7 +2933,7 @@ hal_timer_t Stepper::block_phase_isr() {
|
|||
#endif // INPUT_SHAPING_E_SYNC
|
||||
|
||||
float lookahead(uint32_t t) {
|
||||
for (uint8_t i = 0; block_t *block = Planner::get_future_block(i); i++) {
|
||||
for (uint8_t i = 0; block_t *block = planner.get_future_block(i); i++) {
|
||||
if (block->is_sync()) continue;
|
||||
if (t <= block->acceleration_time) {
|
||||
if (!block->use_advance_lead) return 0.0f;
|
||||
|
@ -2969,7 +2969,7 @@ hal_timer_t Stepper::block_phase_isr() {
|
|||
float target_adv_steps = 0;
|
||||
if (current_block) {
|
||||
const uint32_t t = extruder_advance_tau_ticks[0] + curr_timer_tick;
|
||||
target_adv_steps = lookahead(t) * Planner::extruder_advance_K[0];
|
||||
target_adv_steps = lookahead(t) * planner.extruder_advance_K[0];
|
||||
}
|
||||
else {
|
||||
curr_step_rate = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue