Add a DEBUG_BLUETOOTH option

This commit is contained in:
dlktdr
2021-12-10 22:46:42 +01:00
committed by Risto
parent 48bd1ac738
commit 8a7ba1bd96
3 changed files with 11 additions and 3 deletions
+5 -2
View File
@@ -56,8 +56,11 @@ enum BluetoothStates {
f_printf(&g_bluetoothFile, __VA_ARGS__); \
TRACE_NOCRLF(__VA_ARGS__);
#else
#define BLUETOOTH_TRACE(...) \
TRACE_NOCRLF(__VA_ARGS__);
#if defined(DEBUG_BLUETOOTH)
#define BLUETOOTH_TRACE(...) TRACE_NOCRLF(__VA_ARGS__);
#else
#define BLUETOOTH_TRACE(...)
#endif
#endif
class Bluetooth