DataFlash: correct examples with units

This commit is contained in:
Peter Barker 2017-09-18 22:27:19 +10:00 committed by Peter Barker
parent b19f981c07
commit d68ba874d0
2 changed files with 29 additions and 7 deletions

View File

@ -48,12 +48,29 @@ enum MyLogMessages {
};
static const struct LogStructure log_structure[] = {
{ LOG_TYP1_MSG, sizeof(log_TYP1),
"TYP1", "QabBhHiIfdnNZ", "TimeUS,a,b,B,h,H,i,I,f,d,n,N,Z" },
{ LOG_TYP2_MSG, sizeof(log_TYP2),
"TYP2", "QcCeELMqQ", "TimeUS,c,C,e,E,L,M,q,Q" },
{ LOG_MESSAGE_MSG, sizeof(log_Message),
"MSG", "QZ", "TimeUS,Message"}
{ LOG_TYP1_MSG,
sizeof(log_TYP1),
"TYP1",
"QbBhHiIfdnNZ",
"TimeUS,b,B,h,H,i,I,f,d,n,N,Z",
"s-----------",
"F-----------"
},
{ LOG_TYP2_MSG,
sizeof(log_TYP2),
"TYP2",
"QcCeELMqQ",
"TimeUS,c,C,e,E,L,M,q,Q",
"s--------",
"F--------"
},
{ LOG_MESSAGE_MSG,
sizeof(log_Message),
"MSG",
"QZ",
"TimeUS,Message",
"s-",
"F-"}
};
// these are identical to the entries in the above log-structure. Not

View File

@ -21,7 +21,12 @@ struct PACKED log_Test {
static const struct LogStructure log_structure[] = {
LOG_COMMON_STRUCTURES,
{ LOG_TEST_MSG, sizeof(log_Test),
"TEST", "HHHHii", "V1,V2,V3,V4,L1,L2" }
"TEST",
"HHHHii",
"V1,V2,V3,V4,L1,L2",
"------",
"------"
}
};
#define NUM_PACKETS 500