Skip to content
Snippets Groups Projects
Commit d5a82134 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Add reattach USB command.

parent c5c4a7cf
Branches
Tags
1 merge request!3Develop
......@@ -45,6 +45,12 @@ int8_t command_handler(char command){
printf("T%u.%u.%u.%u\n\r", tcs_data[0], tcs_data[1], tcs_data[2], tcs_data[3]);
}
break;
case 'R': //Restart USB
udc_detach();
delay_ms(100);
udc_attach();
break;
case 'V': //check version
printf("V%u.%u\n\r", BOARD_VER_MAJOR, BOARD_VER_MINOR);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment