From 53b79f5f70b04b6e7bcc73dea3f37881acbe5f64 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <thinkyhead@users.noreply.github.com>
Date: Wed, 10 May 2023 04:02:44 -0500
Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20No=20const=20on=20return=20type?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Marlin/src/core/types.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Marlin/src/core/types.h b/Marlin/src/core/types.h
index 173945a458..68bf8c1a87 100644
--- a/Marlin/src/core/types.h
+++ b/Marlin/src/core/types.h
@@ -962,11 +962,11 @@ public:
   #endif
   #undef MSET
 
-  FI const bool toggle(const AxisEnum n) { return TBI(bits, n); }
+  FI bool toggle(const AxisEnum n) { TBI(bits, n); return TEST(bits, n); }
 
   // Accessor via an AxisEnum (or any integer) [index]
-  FI const bool operator[](const int n) const { return TEST(bits, n); }
-  FI const bool operator[](const AxisEnum n) const { return TEST(bits, n); }
+  FI bool operator[](const int n) const { return TEST(bits, n); }
+  FI bool operator[](const AxisEnum n) const { return TEST(bits, n); }
 
   FI AxisBits& operator|=(const el &p) { bits |= el(p); return *this; }
   FI AxisBits& operator&=(const el &p) { bits &= el(p); return *this; }