fix: Fixed some rookie mistakes
This is a temporary "stable" release. See the Readme.md file in the root directory for more instructions.
This commit is contained in:
parent
ad6b9b3609
commit
3258b84795
|
@ -30,8 +30,8 @@ void handle_dap_data_request(usbip_stage2_header *header)
|
|||
data_in = &(data_in[sizeof(usbip_stage2_header)]);
|
||||
// Point to the beginning of the URB packet
|
||||
dap_respond = DAP_ProcessCommand((uint8_t *)data_in, (uint8_t *)data_out);
|
||||
handle_dap_data_response(header);
|
||||
//send_stage2_submit(header, 0, 0);
|
||||
//handle_dap_data_response(header);
|
||||
send_stage2_submit(header, 0, 0);
|
||||
}
|
||||
void handle_dap_data_response(usbip_stage2_header *header)
|
||||
{
|
||||
|
|
|
@ -283,7 +283,7 @@ static int handle_submit(usbip_stage2_header *header)
|
|||
}
|
||||
else
|
||||
{
|
||||
// os_printf("EP 01 DATA TO HOST");
|
||||
os_printf("EP 01 DATA TO HOST\r\n");
|
||||
handle_dap_data_response(header);
|
||||
}
|
||||
break;
|
||||
|
@ -334,7 +334,7 @@ void send_stage2_submit(usbip_stage2_header *req_header, int32_t status, int32_t
|
|||
send(kSock, req_header, sizeof(usbip_stage2_header), 0);
|
||||
}
|
||||
|
||||
void send_stage2_submit_data(usbip_stage2_header *req_header, int32_t status, const uint8_t *const data, int32_t data_length)
|
||||
void send_stage2_submit_data(usbip_stage2_header *req_header, int32_t status, const void *const data, int32_t data_length)
|
||||
{
|
||||
|
||||
send_stage2_submit(req_header, status, data_length);
|
||||
|
|
Loading…
Reference in New Issue