X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi_eeprom%2Fmain.c;h=2592796a11d07caa7dc74ba88fecae249634b517;hp=5e28034baed69951c8d60f3aae57583b2a59ec72;hb=dcd7e8a307f75474afb23bd5da7048db91faeaa1;hpb=b25d91651338fdf323bcfae5f66d47fec69819f7 diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index 5e28034..2592796 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -2,7 +2,7 @@ main.c - description ------------------- begin : Mon Apr 7 12:05:22 CEST 2003 - copyright : (C) 2003-2013 by Intra2net AG and the libftdi developers + copyright : (C) 2003-2014 by Intra2net AG and the libftdi developers email : opensource@intra2net.com ***************************************************************************/ @@ -43,16 +43,20 @@ static int str_to_cbus(char *str, int max_allowed) { - #define MAX_OPTION 14 - const char* options[MAX_OPTION] = { - "TXDEN", "PWREN", "RXLED", "TXLED", "TXRXLED", "SLEEP", - "CLK48", "CLK24", "CLK12", "CLK6", - "IO_MODE", "BITBANG_WR", "BITBANG_RD", "SPECIAL"}; +#define MAX_OPTION 14 + const char* options[MAX_OPTION] = + { + "TXDEN", "PWREN", "RXLED", "TXLED", "TXRXLED", "SLEEP", + "CLK48", "CLK24", "CLK12", "CLK6", + "IO_MODE", "BITBANG_WR", "BITBANG_RD", "SPECIAL" + }; int i; max_allowed += 1; if (max_allowed > MAX_OPTION) max_allowed = MAX_OPTION; - for (i=0; i