refactoring

This commit is contained in:
rusefi 2019-07-27 20:18:20 -04:00
parent 3a2e1c9990
commit 810916fa34
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,7 @@ void usb_serial_start(void) {
/* /*
* Activates the serial driver 2 using the driver default configuration. * Activates the serial driver 2 using the driver default configuration.
*/ */
sdStart(&SD2, NULL); sdStart(&USB_SERIAL_DRIVER, NULL);
#endif /* HAL_USE_SERIAL */ #endif /* HAL_USE_SERIAL */
isUsbSerialInitialized = true; isUsbSerialInitialized = true;

View File

@ -8,6 +8,8 @@
#ifndef USBCONSOLE_H_ #ifndef USBCONSOLE_H_
#define USBCONSOLE_H_ #define USBCONSOLE_H_
#define USB_SERIAL_DRIVER SD2
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {