adjust indentation
This commit is contained in:
parent
797141a2cd
commit
4d36e6fc07
|
@ -194,7 +194,6 @@ void usbd_configure_done_callback(void)
|
||||||
|
|
||||||
void usbd_cdc_acm_bulk_out(uint8_t ep, uint32_t nbytes)
|
void usbd_cdc_acm_bulk_out(uint8_t ep, uint32_t nbytes)
|
||||||
{
|
{
|
||||||
//4, 5 (shouldn't we be getting endpoint 2 here?)
|
|
||||||
debug_val_1 = ep; debug_val32_1 = nbytes;
|
debug_val_1 = ep; debug_val32_1 = nbytes;
|
||||||
USB_LOG_RAW("actual out len:%d\r\n", nbytes);
|
USB_LOG_RAW("actual out len:%d\r\n", nbytes);
|
||||||
|
|
||||||
|
@ -204,7 +203,6 @@ void usbd_cdc_acm_bulk_out(uint8_t ep, uint32_t nbytes)
|
||||||
|
|
||||||
void usbd_cdc_acm_bulk_in(uint8_t ep, uint32_t nbytes)
|
void usbd_cdc_acm_bulk_in(uint8_t ep, uint32_t nbytes)
|
||||||
{
|
{
|
||||||
//129, 14 (129=0x81=CDC_IN_EP)
|
|
||||||
debug_val_2 = ep; debug_val32_2 = nbytes;
|
debug_val_2 = ep; debug_val32_2 = nbytes;
|
||||||
USB_LOG_RAW("actual in len:%d\r\n", nbytes);
|
USB_LOG_RAW("actual in len:%d\r\n", nbytes);
|
||||||
|
|
||||||
|
@ -315,9 +313,6 @@ void cdc_acm_log_with_dtr(const uint8_t *data, uint32_t data_len )
|
||||||
|
|
||||||
uint32_t out_inx = 0;
|
uint32_t out_inx = 0;
|
||||||
void log(const char *data){
|
void log(const char *data){
|
||||||
/* memcpy(&write_buffer[0], data, strlen(data)); */
|
|
||||||
/* write_buffer[9] = 0x30 + debug_val_1; */
|
|
||||||
/* write_buffer[20] = 0x30 + debug_val_2; */
|
|
||||||
int len = snprintf(
|
int len = snprintf(
|
||||||
(char *)&write_buffer[0],
|
(char *)&write_buffer[0],
|
||||||
2048,
|
2048,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user