Bluetooth SD logs (#7197)

Bluetooth SD logs
This commit is contained in:
Bertrand Songis
2019-12-16 12:22:48 +01:00
committed by GitHub
parent b475a7064d
commit 16c9a92f49
14 changed files with 94 additions and 31 deletions
+11 -2
View File
@@ -46,8 +46,17 @@ enum BluetoothStates {
#define LEN_BLUETOOTH_ADDR 16
#define MAX_BLUETOOTH_DISTANT_ADDR 6
#define BLUETOOTH_PACKET_SIZE 14
#define BLUETOOTH_LINE_LENGTH 32
#define BLUETOOTH_PACKET_SIZE 14
#define BLUETOOTH_LINE_LENGTH 32
#if defined(LOG_BLUETOOTH)
#define BLUETOOTH_TRACE(str, ...) \
f_printf(&g_bluetoothFile, str, ##__VA_ARGS__); \
TRACE_NOCRLF(str, ##__VA_ARGS__);
#else
#define BLUETOOTH_TRACE(str, ...) \
TRACE_NOCRLF(str, ##__VA_ARGS__);
#endif
class Bluetooth
{