SD card log fields list should be auto-generated #3985

oh many fields!
This commit is contained in:
rusefillc 2022-10-28 04:11:54 -04:00
parent 3c5f8f8f3c
commit eeb7a59d48
1 changed files with 3 additions and 2 deletions

View File

@ -83,8 +83,9 @@ void writeFileHeader(Writer& outBuffer) {
buffer[19] = recordLength & 0xFF;
// Number of logger fields
buffer[20] = 0;
buffer[21] = efi::size(fields);
int fieldsCount = efi::size(fields);
buffer[20] = fieldsCount >> 8;
buffer[21] = fieldsCount;
outBuffer.write(buffer, MLQ_HEADER_SIZE);