| 880 | } |
| 881 | |
| 882 | int mapHex(char c) |
| 883 | { |
| 884 | if (('a' <= c) && (c <= 'f')) |
| 885 | return 10 + c - 'a'; |
| 886 | if (('A' <= c) && (c <= 'F')) |
| 887 | return 10 + c - 'A'; |
| 888 | if (('0' <= c) && (c <= '9')) |
| 889 | return c - '0'; |
| 890 | |
| 891 | fprintf(stderr, "bad hex digit %c\n", c); |
| 892 | exit(1); |
| 893 | } |
| 894 | |
| 895 | void fxSetPref(txSerialTool self) |
| 896 | { |