Update config_file_parser.c

add eating up leading Tab or Space for resolving model config file retraction.
pull/244/head
waterun 5 years ago committed by GitHub
parent f5878fd6a1
commit 5c8d0e9bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -47,7 +47,7 @@ readLine(FileHandle fileHandle, uint8_t* buffer, int maxSize)
if (fileReadResult == 1) {
if (!((buffer[bufPos] == '\n') || (buffer[bufPos] == '\r'))) {
if (!((buffer[bufPos] == '\n') || (buffer[bufPos] == '\r') || (buffer[bufPos] == '\t') || (buffer[bufPos] == ' '))) {
bufPos++;
bytesRead++;
break;

Loading…
Cancel
Save