Add verbose option

This commit is contained in:
dlktdr
2021-12-10 22:46:42 +01:00
committed by Risto
parent 8a7ba1bd96
commit 99253efd75
4 changed files with 18 additions and 6 deletions
+5 -1
View File
@@ -143,7 +143,11 @@ if(DEBUG_LATENCY STREQUAL END_TO_END)
endif()
if(DEBUG_BLUETOOTH)
add_definitions(-DDEBUG_BLUETOOTH)
add_definitions(-DDEBUG_BLUETOOTH)
option(DEBUG_BLUETOOTH_VERBOSE "Debug Bluetooth Verbose" OFF)
if(DEBUG_BLUETOOTH_VERBOSE)
add_definitions(-DDEBUG_BLUETOOTH_VERBOSE)
endif()
endif()
if(CLI)
@@ -123,7 +123,7 @@ extern "C" void BT_USART_IRQHandler(void)
USART_ClearITPendingBit(BT_USART, USART_IT_RXNE);
uint8_t byte = USART_ReceiveData(BT_USART);
btRxFifo.push(byte);
BLUETOOTH_TRACE("BT %02X", byte);
BLUETOOTH_TRACE_VERBOSE("BT %02X" CRLF, byte);
#if defined(BLUETOOTH_PROBE)
if (!btChipPresent) {
// This is to differentiate X7 and X7S and X-Lite with/without BT