From 57bd9dc474e8a693f0bafe45a98b96a4282ee975 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 31 Aug 2018 22:47:16 -0400 Subject: [PATCH] docs --- firmware/util/datalogging.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/util/datalogging.cpp b/firmware/util/datalogging.cpp index aa8a4a99f7..a3b5853cfe 100644 --- a/firmware/util/datalogging.cpp +++ b/firmware/util/datalogging.cpp @@ -208,6 +208,8 @@ void printWithLength(char *line) { * When we work with actual hardware, it is faster to invoke 'chSequentialStreamWrite' for the * whole buffer then to invoke 'chSequentialStreamPut' once per character. */ + // todo: if needed we can probably know line length without calculating it, but seems like this is done not + // under a lock so not a problem? int len = efiStrlen(line); strcpy(header, "line:"); char *p = header + efiStrlen(header);