Fix missing header string for Fan duty. Add static assert to try and ID this in future

This commit is contained in:
Josh Stewart 2021-12-10 13:29:25 +11:00
parent 49966d1976
commit f21a19595f
1 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,8 @@
#ifndef LOGGER_H
#define LOGGER_H
#include <assert.h>
#ifndef UNIT_TEST // Scope guard for unit testing
#define LOG_ENTRY_SIZE 122 /**< The size of the live data packet. This MUST match ochBlockSize setting in the ini file */
#define SD_LOG_ENTRY_SIZE 122 /**< The size of the live data packet used by the SD car.*/
@ -112,8 +114,8 @@ const char header_84[] PROGMEM = "Advance 1";
const char header_85[] PROGMEM = "Advance 2";
const char header_86[] PROGMEM = "SD Status";
const char header_87[] PROGMEM = "EMAP";
const char header_88[] PROGMEM = "Fan Duty";
/*
const char header_88[] PROGMEM = "";
const char header_89[] PROGMEM = "";
const char header_90[] PROGMEM = "";
const char header_91[] PROGMEM = "";
@ -237,8 +239,8 @@ const char* const header_table[] PROGMEM = { header_0,\
header_85,\
header_86,\
header_87,\
/*
header_88,\
/*
header_89,\
header_90,\
header_91,\
@ -275,4 +277,6 @@ const char* const header_table[] PROGMEM = { header_0,\
*/
};
static_assert(sizeof(header_table) == (sizeof(char*) * SD_LOG_NUM_FIELDS), "Number of header table titles must match number of log fields");
#endif