AP_Logger: log SPI and I2C counters in PM msg

This commit is contained in:
Andrew Tridgell 2019-05-16 17:57:54 +10:00
parent 59678840a8
commit 6b1374e55c

View File

@ -1087,6 +1087,8 @@ struct PACKED log_Performance {
uint32_t mem_avail;
uint16_t load;
uint32_t internal_errors;
uint32_t spi_count;
uint32_t i2c_count;
};
struct PACKED log_SRTL {
@ -1330,7 +1332,7 @@ Format characters in the format string for binary log messages
{ LOG_PROXIMITY_MSG, sizeof(log_Proximity), \
"PRX", "QBfffffffffff", "TimeUS,Health,D0,D45,D90,D135,D180,D225,D270,D315,DUp,CAn,CDis", "s-mmmmmmmmmhm", "F-BBBBBBBBB00" }, \
{ LOG_PERFORMANCE_MSG, sizeof(log_Performance), \
"PM", "QHHIIHI", "TimeUS,NLon,NLoop,MaxT,Mem,Load,IntErr", "s---b%-", "F---0A-" }, \
"PM", "QHHIIHIII", "TimeUS,NLon,NLoop,MaxT,Mem,Load,IntErr,SPICnt,I2CCnt", "s---b%--", "F---0A--" }, \
{ LOG_SRTL_MSG, sizeof(log_SRTL), \
"SRTL", "QBHHBfff", "TimeUS,Active,NumPts,MaxPts,Action,N,E,D", "s----mmm", "F----000" }