Skip to content
Snippets Groups Projects
Commit 3ac43123 authored by cnlohr's avatar cnlohr
Browse files

Fix up changes from @bmx by making it work with the Link-E

parent 0ef88546
No related branches found
No related tags found
No related merge requests found
......@@ -214,9 +214,12 @@ static int LESetupInterface( void * d )
case 4:
fprintf(stderr, "WCH Programmer is LinkB version %d.%d\n",rbuff[3], rbuff[4]);
break;
case 18:
fprintf(stderr, "WCH Programmer is LinkE version %d.%d\n",rbuff[3], rbuff[4]);
break;
default:
fprintf(stderr, "Unknown WCH Programmer %02x\n", rbuff[5]);
return -1;
fprintf(stderr, "Unknown WCH Programmer %02x (Ver %d.%d)\n", rbuff[5], rbuff[3], rbuff[4]);
break;
}
// TODO: What in the world is this? It doesn't appear to be needed.
......@@ -536,4 +539,4 @@ static int LEWriteBinaryBlob( void * d, uint32_t address_to_write, uint32_t len,
}
#endif
\ No newline at end of file
#endif
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