File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -623,8 +623,11 @@ usb2_in_transfer_handler(uint8_t endp_num)
623
623
LOG_IF (LOG_LEVEL_DEBUG , LOG_ID_USB2 ,
624
624
"End of IN transfer for ENDP %d \r\n" , endp_num );
625
625
* T_Len = 0 ;
626
- * usb2_get_tx_endpoint_addr_reg (endp_num ) = (uint32_t )endp -> buffer ;
627
- if (endp_num == 0 )
626
+ if (endp_num != 0 )
627
+ {
628
+ * usb2_get_tx_endpoint_addr_reg (endp_num ) = (uint32_t )endp -> buffer ;
629
+ }
630
+ else
628
631
{
629
632
* usb2_get_rx_endpoint_addr_reg (0 ) = (uint32_t )usb2_backend_current_device -> endpoints .rx [0 ].buffer ;
630
633
}
Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ typedef struct hydra_pool_t
63
63
.size = _size, \
64
64
.type_size = sizeof(_type) }
65
65
66
+ #define HYDRA_POOL_DECLR (_name ) \
67
+ extern hydra_pool_t _name
68
+
66
69
/**
67
70
* @brief Get a free pool member
68
71
* @param pool pointer to the pool
You can’t perform that action at this time.
0 commit comments