From e6e3132f7973df0a342e52bcc28006b425378f9b Mon Sep 17 00:00:00 2001
From: Bob-the-Kuhn <bob.kuhn@att.net>
Date: Thu, 29 Jun 2017 08:59:13 -0500
Subject: [PATCH] make LETTTER_OFF return values that match param indices range

---
 Marlin/gcode.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/gcode.h b/Marlin/gcode.h
index b819fd075d..ac3268d7d4 100644
--- a/Marlin/gcode.h
+++ b/Marlin/gcode.h
@@ -104,7 +104,7 @@ public:
   // Index so that 'X' falls on index 24
   #define PARAM_IND(N)  ((N) >> 3)
   #define PARAM_BIT(N)  ((N) & 0x7)
-  #define LETTER_OFF(N) ((N) - 'A' + 1)
+  #define LETTER_OFF(N) ((N) - 'A')
   #define LETTER_IND(N) PARAM_IND(LETTER_OFF(N))
   #define LETTER_BIT(N) PARAM_BIT(LETTER_OFF(N))
 
-- 
GitLab