kopia lustrzana https://github.com/Guenael/rtlsdr-wsprd
chore(build): back to std=gnu11 for old raspian
rodzic
682a400532
commit
d0f981863a
9
Makefile
9
Makefile
|
@ -1,6 +1,11 @@
|
|||
CC = clang
|
||||
CFLAGS= -O3 -std=gnu17 -Wall # -fsanitize=address
|
||||
LIBS = -lusb-1.0 -lrtlsdr -lpthread -lfftw3f -lcurl -lm # -fsanitize=address
|
||||
CFLAGS= -O3 -std=gnu11 -Wall
|
||||
LIBS = -lusb-1.0 -lrtlsdr -lpthread -lfftw3f -lcurl -lm
|
||||
|
||||
# Note
|
||||
# gcc is a bit faster that clang on this app
|
||||
# std=gnu11 beacuse gnu17 is not available on Rasbian Stretch
|
||||
# for dbg: -fsanitize=address
|
||||
|
||||
OBJS = rtlsdr_wsprd.o wsprd/wsprd.o wsprd/wsprsim_utils.o wsprd/wsprd_utils.o wsprd/tab.o wsprd/fano.o wsprd/nhash.o
|
||||
|
||||
|
|
|
@ -945,8 +945,8 @@ int main(int argc, char **argv) {
|
|||
|
||||
|
||||
/* Time alignment */
|
||||
uint32_t sec = lTime.tv_sec % 120;
|
||||
uint32_t usec = sec * 1000000 + lTime.tv_usec;
|
||||
uint32_t sec = lTime.tv_sec % 120;
|
||||
uint32_t usec = sec * 1000000 + lTime.tv_usec;
|
||||
uint32_t uwait = 120000000 - usec;
|
||||
printf("Wait for time sync (start in %d sec)\n\n", uwait / 1000000);
|
||||
printf(" Date Time(z) SNR DT Freq Dr Call Loc Pwr\n");
|
||||
|
@ -972,8 +972,8 @@ int main(int argc, char **argv) {
|
|||
while (!rx_state.exit_flag && !(rx_options.maxloop && (nLoop >= rx_options.maxloop))) {
|
||||
/* Wait for time Sync on 2 mins */
|
||||
gettimeofday(&lTime, NULL);
|
||||
sec = lTime.tv_sec % 120;
|
||||
usec = sec * 1000000 + lTime.tv_usec;
|
||||
sec = lTime.tv_sec % 120;
|
||||
usec = sec * 1000000 + lTime.tv_usec;
|
||||
uwait = 120000000 - usec + 10000; // Adding 10ms, to be sure to reach this next minute
|
||||
usleep(uwait);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue