From 3a9394c3082cc12932e97b38a812c0a7a0ef12bc Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 27 Oct 2025 11:13:40 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Sync=20bloc?= =?UTF-8?q?ks=20'const'=20hint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/planner.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Marlin/src/module/planner.h b/Marlin/src/module/planner.h index 0ad68352ee..b6fdc2fc6f 100644 --- a/Marlin/src/module/planner.h +++ b/Marlin/src/module/planner.h @@ -209,12 +209,12 @@ typedef struct PlannerBlock { volatile block_flags_t flag; // Block flags - bool is_sync_pos() { return flag.sync_position; } - bool is_sync_fan() { return TERN0(LASER_SYNCHRONOUS_M106_M107, flag.sync_fans); } - bool is_sync_pwr() { return TERN0(LASER_POWER_SYNC, flag.sync_laser_pwr); } - bool is_sync() { return is_sync_pos() || is_sync_fan() || is_sync_pwr(); } - bool is_page() { return TERN0(DIRECT_STEPPING, flag.page); } - bool is_move() { return !(is_sync() || is_page()); } + bool is_sync_pos() const { return flag.sync_position; } + bool is_sync_fan() const { return TERN0(LASER_SYNCHRONOUS_M106_M107, flag.sync_fans); } + bool is_sync_pwr() const { return TERN0(LASER_POWER_SYNC, flag.sync_laser_pwr); } + bool is_sync() const { return is_sync_pos() || is_sync_fan() || is_sync_pwr(); } + bool is_page() const { return TERN0(DIRECT_STEPPING, flag.page); } + bool is_move() const { return !(is_sync() || is_page()); } // Fields used by the motion planner to manage acceleration float nominal_speed, // The nominal speed for this block in (mm/sec)