should fix problem with demo bulk out

This commit is contained in:
hathach 2013-06-23 14:21:44 +07:00
parent 2cc5df9b00
commit a531d27a49
1 changed files with 6 additions and 5 deletions

View File

@ -119,13 +119,14 @@ void custom_class_loopback_task (void* p_task_para)
{ {
tusbh_custom_read(1, 0, 0, custom_read_buffer, sizeof(custom_read_buffer)); tusbh_custom_read(1, 0, 0, custom_read_buffer, sizeof(custom_read_buffer));
if (TUSB_ERROR_NONE == tusbh_custom_write(1, 0, 0, custom_write_buffer, sizeof(custom_write_buffer)))
{
static uint32_t magic_number = 1; static uint32_t magic_number = 1;
custom_write_buffer[0] = magic_number; custom_write_buffer[0] = magic_number;
tusbh_custom_write(1, 0, 0, custom_write_buffer, sizeof(custom_write_buffer));
magic_number += 2; magic_number += 2;
} }
} }
}
//--------------------------------------------------------------------+ //--------------------------------------------------------------------+
// BLINKING TASK // BLINKING TASK