Skip to content

Commit

Permalink
Fix operation for ch32v003
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Feb 13, 2024
1 parent fea6b67 commit 2c30155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minichlink/pgm-wch-linke.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static int LESetupInterface( void * d )
iss->sector_size = 256;

wch_link_command( dev, "\x81\x0d\x01\x03", 4, (int*)&transferred, rbuff, 1024 ); // Reply: Ignored, 820d050900300500
} else if( !result ) {
} else if( result < 0 ) {
fprintf( stderr, "Chip type not supported. Aborting...\n" );
return -1;
}
Expand Down

0 comments on commit 2c30155

Please sign in to comment.