diff --git a/Makefile b/Makefile index 4018dd1..08a357e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC=arm-linux-gnueabihf-gcc STRIP=arm-linux-gnueabihf-strip -CCFLAGS=-Ialsa/include -Lalsa/lib -Ofast -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations +CCFLAGS=-Ialsa/include -Lalsa/lib -Ofast -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations LDFLAGS=-lasound -lm -pthread all : $(CC) $(CCFLAGS) $(LDFLAGS) main.c modem.c serial.c serial2.c misc.c udpsock.c tcpsock.c alsa.c ini.c directory.c modem_snd.c -o midilink diff --git a/midilink b/midilink index 0cf048f..2344058 100755 Binary files a/midilink and b/midilink differ diff --git a/misc.c b/misc.c index 9780282..e38e665 100644 --- a/misc.c +++ b/misc.c @@ -173,8 +173,6 @@ void misc_swrite_no_trans(int fdSerial, const char* format, ... ) int misc_check_args_option (int argc, char *argv[], char * option) { int result = FALSE; - char * OPTION = strdup(option); - misc_str_to_upper(OPTION); if(argc > 1) for (int i = 1; i< argc; i++) { @@ -184,7 +182,6 @@ int misc_check_args_option (int argc, char *argv[], char * option) break; } } - free(OPTION); return result; } diff --git a/mlinkutil b/mlinkutil index a662e5e..3ad1bd1 100755 Binary files a/mlinkutil and b/mlinkutil differ