Browse Source

🩹 Fix const warning

Scott Lahteine 2 years ago
parent
commit
c16ae2451d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/HAL/AVR/pinsDebug.h

+ 1
- 1
Marlin/src/HAL/AVR/pinsDebug.h View File

74
 #define MULTI_NAME_PAD 26 // space needed to be pretty if not first name assigned to a pin
74
 #define MULTI_NAME_PAD 26 // space needed to be pretty if not first name assigned to a pin
75
 
75
 
76
 void PRINT_ARRAY_NAME(uint8_t x) {
76
 void PRINT_ARRAY_NAME(uint8_t x) {
77
-  char *name_mem_pointer = (PGM_P)pgm_read_ptr(&pin_array[x].name);
77
+  const char * const name_mem_pointer = (PGM_P)pgm_read_ptr(&pin_array[x].name);
78
   LOOP_L_N(y, MAX_NAME_LENGTH) {
78
   LOOP_L_N(y, MAX_NAME_LENGTH) {
79
     char temp_char = pgm_read_byte(name_mem_pointer + y);
79
     char temp_char = pgm_read_byte(name_mem_pointer + y);
80
     if (temp_char != 0)
80
     if (temp_char != 0)

Loading…
Cancel
Save