Reformat usb_cdc.cpp

pull/130/head
D.R.racer 2021-10-12 19:18:11 +02:00 committed by DRracer
parent d35bcd258a
commit 9994d05d7f
1 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@ extern "C" {
#include "Descriptors.h" #include "Descriptors.h"
#include "lufa/LUFA/Drivers/USB/USB.h" #include "lufa/LUFA/Drivers/USB/USB.h"
/** Standard file stream for the CDC interface when set up, so that the virtual CDC COM port can be /** Standard file stream for the CDC interface when set up, so that the virtual CDC COM port can be
* used like any regular character stream in the C APIs. * used like any regular character stream in the C APIs.
*/ */
@ -93,7 +92,7 @@ void CDC::Init() {
USB_Init(); USB_Init();
/* Create a regular character stream for the interface so that it can be used with the stdio.h functions */ /* Create a regular character stream for the interface so that it can be used with the stdio.h functions */
CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream); CDC_Device_CreateStream(&VirtualSerial_CDC_Interface, &USBSerialStream);
stdout = &USBSerialStream; stdout = &USBSerialStream;
} }