Skip to content

Commit

Permalink
Merge pull request #4 from paolo-caroni/master
Browse files Browse the repository at this point in the history
Add rules for complete access on GNU/Linux
  • Loading branch information
Collin Allen committed Mar 28, 2016
2 parents eaf77dc + 72af17b commit bcc8f02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions 99-CH341.rules
@@ -0,0 +1,3 @@
/* This file should be copyed on /etc/udev/rules.d on GNU/Linux OS and derived */
/* Add permission to all user to have complete acces to eeprom programmer CH341 */
SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="5512", MODE:="0666"
6 changes: 3 additions & 3 deletions mktestimg.c
Expand Up @@ -33,9 +33,9 @@ int main(int argc, char **argv)
char chip;
static char *hex = "\00\x11\x22\x33\x44\x55\x66\x77\x88\x99\xaa\xbb\xcc\xdd\xee\xff";

printf("Select chip type:\n\na for 24c01\nb for 24c02\nc for 24c04\nd for 24c08\
e for 24c16\nf for 24c32\ng for 24c64\nh for 24c128\ni for 24c256\
l for 24c512\nm for 24c1024\n\nInsert a letter:");
printf("Select chip type:\n\na for 24c01\nb for 24c02\nc for 24c04\nd for 24c08\n"\
"e for 24c16\nf for 24c32\ng for 24c64\nh for 24c128\ni for 24c256\n"\
"l for 24c512\nm for 24c1024\n\nInsert a letter:");
scanf("%c",&chip);
getchar();

Expand Down

0 comments on commit bcc8f02

Please sign in to comment.