소스 검색

🩹 Fix const warning

Followup to c16ae2451d
Scott Lahteine 2 년 전
부모
커밋
bcd9bb9628
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/src/HAL/AVR/pinsDebug.h

+ 1
- 1
Marlin/src/HAL/AVR/pinsDebug.h 파일 보기

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
-  const char * const name_mem_pointer = (PGM_P)pgm_read_ptr(&pin_array[x].name);
77
+  PGM_P 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…
취소
저장