fix flash display

This commit is contained in:
李昂 2022-02-20 14:03:25 +00:00 committed by Gitee
parent 1cc7703d7e
commit 8c9d281be4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -216,7 +216,7 @@ void STM32_Code_flashHandler(void) {
printf("\r\n");
printf("----[code in flash]-----\r\n");
for (int i = 0; i < strGetSize(codeHeap.content); i++) {
if ('\n' == codeHeap.content[i]) {
if ('\n' == codeHeap.content[i] && '\r' != codeHeap.content[i -1]) {
fputc('\r', (FILE*)!NULL);
}
fputc(codeHeap.content[i], (FILE*)!NULL);