From d32ec0d057cfbb064060cf0582db1ccf25c02052 Mon Sep 17 00:00:00 2001 From: pa3gsb Date: Wed, 29 Aug 2018 12:53:11 +0200 Subject: [PATCH] O2 level --- software/hermes-emulator-protocol-2/Makefile | 4 ++-- software/hermes-emulator-protocol-2/hermeslite.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/software/hermes-emulator-protocol-2/Makefile b/software/hermes-emulator-protocol-2/Makefile index 9c29f82..b94a129 100644 --- a/software/hermes-emulator-protocol-2/Makefile +++ b/software/hermes-emulator-protocol-2/Makefile @@ -1,9 +1,9 @@ CC=gcc LINK=gcc -OPTIONS=-g +OPTIONS=-g -Wno-deprecated-declarations -march=native -O2 -LIBS=-lrt -lm -lwiringPi -lpigpio -lpthread -lasound +LIBS=-lrt -lm -lpigpio -lpthread -lasound COMPILE=$(CC) $(OPTIONS) $(INCLUDES) diff --git a/software/hermes-emulator-protocol-2/hermeslite.c b/software/hermes-emulator-protocol-2/hermeslite.c index 9d72644..e7e7b8f 100644 --- a/software/hermes-emulator-protocol-2/hermeslite.c +++ b/software/hermes-emulator-protocol-2/hermeslite.c @@ -376,6 +376,7 @@ void *send_rx_iq_to_host(void *arg) { while(1) { if (running) { + while (ptt) {usleep(20000);} sem_wait(&mutex);