Browse Source

Merge pull request #7183 from Bob-the-Kuhn/Fix_LETTER_OFF_in_gcode.h

Fix LETTER_OFF in gcode.h (make LETTTER_OFF return values that match param indices range)
Bob-the-Kuhn 7 years ago
parent
commit
553d5ca283
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/gcode.h

+ 1
- 1
Marlin/gcode.h View File

@@ -104,7 +104,7 @@ public:
104 104
   // Index so that 'X' falls on index 24
105 105
   #define PARAM_IND(N)  ((N) >> 3)
106 106
   #define PARAM_BIT(N)  ((N) & 0x7)
107
-  #define LETTER_OFF(N) ((N) - 'A' + 1)
107
+  #define LETTER_OFF(N) ((N) - 'A')
108 108
   #define LETTER_IND(N) PARAM_IND(LETTER_OFF(N))
109 109
   #define LETTER_BIT(N) PARAM_BIT(LETTER_OFF(N))
110 110
 

Loading…
Cancel
Save