Use TNC_DEBUG instead of DEBUG because DEBUG is defined by STM32CubeIDE.

m17
Rob Riggs 2021-07-24 16:16:41 -05:00
rodzic 06b0b5e919
commit 8b08eed6fa
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -147,18 +147,18 @@ void HAL_PCDEx_BCD_Callback(PCD_HandleTypeDef *hpcd, PCD_BCD_MsgTypeDef msg)
case PCD_BCD_STD_DOWNSTREAM_PORT:
// Only charge after negotiation
DEBUG("Detected standard downstream USB port");
TNC_DEBUG("Detected standard downstream USB port");
downstream_port = 1;
break;
case PCD_BCD_CHARGING_DOWNSTREAM_PORT:
DEBUG("Detected charging downstream USB port");
TNC_DEBUG("Detected charging downstream USB port");
osMessagePut(ioEventQueueHandle, CMD_USB_CHARGE_ENABLE, 0);
downstream_port = 1;
break;
case PCD_BCD_DEDICATED_CHARGING_PORT:
DEBUG("Detected dedicated charging port");
TNC_DEBUG("Detected dedicated charging port");
osMessagePut(ioEventQueueHandle, CMD_USB_CHARGE_ENABLE, 0);
downstream_port = 0;
break;