diff --git a/firmware/hw_layer/serial_over_usb/usbconsole.c b/firmware/hw_layer/serial_over_usb/usbconsole.c index 4577dfa178..89f18f5d9f 100644 --- a/firmware/hw_layer/serial_over_usb/usbconsole.c +++ b/firmware/hw_layer/serial_over_usb/usbconsole.c @@ -46,7 +46,7 @@ void usb_serial_start(void) { /* * Activates the serial driver 2 using the driver default configuration. */ - sdStart(&SD2, NULL); + sdStart(&USB_SERIAL_DRIVER, NULL); #endif /* HAL_USE_SERIAL */ isUsbSerialInitialized = true; diff --git a/firmware/hw_layer/serial_over_usb/usbconsole.h b/firmware/hw_layer/serial_over_usb/usbconsole.h index d2bf719d40..40db56f233 100644 --- a/firmware/hw_layer/serial_over_usb/usbconsole.h +++ b/firmware/hw_layer/serial_over_usb/usbconsole.h @@ -8,6 +8,8 @@ #ifndef USBCONSOLE_H_ #define USBCONSOLE_H_ +#define USB_SERIAL_DRIVER SD2 + #ifdef __cplusplus extern "C" {