Skip to content
Snippets Groups Projects
Commit b83cc2e3 authored by Carsten Thiele's avatar Carsten Thiele
Browse files

fix: "minichlink -u" segmentation fault

parent 90f1a497
No related branches found
No related tags found
No related merge requests found
......@@ -193,9 +193,10 @@ printf( " 5: %d\n", bOn );
return 0;
}
static int LEUnbrick( void * dev )
static int LEUnbrick( void * d )
{
printf( "Sending unbrick\n" );
libusb_device_handle * dev = ((struct LinkEProgrammerStruct*)d)->devh;
wch_link_command( (libusb_device_handle *)dev, "\x81\x0d\x01\x0f\x09", 5, 0, 0, 0 );
printf( "Done unbrick\n" );
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment