mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-1122 OP-1145 fixed logging helper as per review
+review OPReview-604
This commit is contained in:
parent
7f2c24db2b
commit
96588ab13e
@ -36,9 +36,14 @@
|
||||
|
||||
#if defined UAV_DEBUGLOG && defined FLASH_FREERTOS
|
||||
#define UAVT_DEBUGLOG_PRINTF(...) PIOS_DEBUGLOG_Printf(__VA_ARGS__)
|
||||
#define UAVT_DEBUGLOG_CPRINTF(objId, ...) if (objId == 0x5E5903CC) { UAVT_DEBUGLOG_PRINTF(__VA_ARGS__); }
|
||||
#else
|
||||
// uncomment and adapt the following lines to filter verbose logging to include specific object(s) only
|
||||
//#include "flighttelemetrystats.h"
|
||||
//#define UAVT_DEBUGLOG_CPRINTF(objId, ...) if (objId == FLIGHTTELEMETRYSTATS_OBJID) { UAVT_DEBUGLOG_PRINTF(__VA_ARGS__); }
|
||||
#endif
|
||||
#ifndef UAVT_DEBUGLOG_PRINTF
|
||||
#define UAVT_DEBUGLOG_PRINTF(...)
|
||||
#endif
|
||||
#ifndef UAVT_DEBUGLOG_CPRINTF
|
||||
#define UAVT_DEBUGLOG_CPRINTF(objId, ...)
|
||||
#endif
|
||||
|
||||
|
@ -34,7 +34,12 @@
|
||||
#include <QEventLoop>
|
||||
|
||||
#ifdef VERBOSE_UAVTALK
|
||||
#define VERBOSE_FILTER(objId) if (objId == 0x173E3850 || objId == 0x99C63292)
|
||||
// uncomment and adapt the following lines to filter verbose logging to include specific object(s) only
|
||||
//#include "flighttelemetrystats.h"
|
||||
//#define VERBOSE_FILTER(objId) if (objId == FlightTelemetryStats::OBJID)
|
||||
#endif
|
||||
#ifndef VERBOSE_FILTER
|
||||
#define VERBOSE_FILTER(objId)
|
||||
#endif
|
||||
|
||||
#define SYNC_VAL 0x3C
|
||||
|
Loading…
x
Reference in New Issue
Block a user