Skip to content
Snippets Groups Projects
Commit 7129a32c authored by cnlohr's avatar cnlohr
Browse files

Fix the rest of the invalid initialization bug, when using minichlink as a library.

parent cc06e8e3
No related branches found
No related tags found
No related merge requests found
......@@ -56,8 +56,6 @@ int main( int argc, char ** argv )
fprintf( stderr, "Error: Could not initialize any supported programmers\n" );
return -32;
}
SetupAutomaticHighLevelFunctions( dev );
int status;
int must_be_end = 0;
......
......@@ -13,7 +13,6 @@ struct LinkEProgrammerStruct
{
void * internal;
libusb_device_handle * devh;
int lasthaltmode;
};
#define WCHTIMEOUT 5000
......@@ -248,7 +247,6 @@ void * TryInit_WCHLinkE()
struct LinkEProgrammerStruct * ret = malloc( sizeof( struct LinkEProgrammerStruct ) );
memset( ret, 0, sizeof( *ret ) );
ret->devh = wch_linke_devh;
ret->lasthaltmode = 0;
MCF.ReadReg32 = LEReadReg32;
MCF.WriteReg32 = LEWriteReg32;
......
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