From aef46026d8f1318f49876d366544c80783c1fc2c Mon Sep 17 00:00:00 2001 From: Gabor Feher Date: Thu, 29 Aug 2024 00:53:03 +0900 Subject: [PATCH] fix: use consistent indentation --- src/blackbox_decode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/blackbox_decode.c b/src/blackbox_decode.c index 73ddcd2..791b523 100644 --- a/src/blackbox_decode.c +++ b/src/blackbox_decode.c @@ -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); @@ -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; } } }