소스 검색

Fix CFM message end pointer

Alex Voinea 3 년 전
부모
커밋
026145b78b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Firmware/optiboot_w25x20cl.cpp

+ 1 - 0
Firmware/optiboot_w25x20cl.cpp

@@ -165,6 +165,7 @@ uint8_t optiboot_w25x20cl_enter()
     cbi(UCSR0B, RXCIE0); //disable the MarlinSerial0 interrupt
     // Send the cfm magic string.
     ptr = entry_magic_cfm;
+    end = strlen_P(entry_magic_cfm) + ptr;
     while (ptr != end)
       putch(pgm_read_byte(ptr ++));
   }