Skip to content

Commit

Permalink
fix: use consistent indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
afgTheCat committed Aug 28, 2024
1 parent 8d83951 commit aef4602
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/blackbox_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ void writeLogHeaderLine(const char *lineStart, const char *lineEnd) {
}
const char *separatorPos = strchr(lineStart, ':');
if (separatorPos == NULL || separatorPos > lineEnd) {
return;
return;
}

fprintf(headersFile, "%.*s,\"%.*s\"\n", (int) (separatorPos - lineStart - 2), lineStart+2, (int) (lineEnd - separatorPos -1), separatorPos + 1);
Expand All @@ -1111,10 +1111,10 @@ void writeLogHeaders(flightLog_t *log, int logIndex) {
while (headerPos < headerEnd) {
char *next_line = strchr(headerPos + 1, '\n');
if (next_line != NULL && next_line < headerEnd) {
writeLogHeaderLine(headerPos, next_line);
headerPos = next_line + 1;
writeLogHeaderLine(headerPos, next_line);
headerPos = next_line + 1;
} else {
break;
break;
}
}
}
Expand Down

0 comments on commit aef4602

Please sign in to comment.