kopia lustrzana https://github.com/Guenael/rtlsdr-wsprd
Merge pull request #85 from Guenael/guenael
chore(build): back to std=gnu11 for old raspianpull/86/head 0.3.2
commit
e8b919fe0d
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
|
||||
|
||||
|
|
|
@ -78,7 +78,3 @@ Some manufacturers intergrate a 0.5ppm TCXO. It's the best second option, after
|
|||
- NooElec NESDR SMART : Works fine out of the box
|
||||
- RTL-SDR Blog 1PPM TCXO : Works with some drift, require additional mass, or a better enclosure
|
||||
- Other no-name like : RT820, E4000, FC0012, FC0013, can work, but require modification and drift a lot
|
||||
|
||||
Ex: NooElec NESDR SMArt - Premium RTL-SDR w/ Aluminum Enclosure, 0.5PPM TCXO
|
||||
|
||||
https://www.nooelec.com/store/nesdr-smart.html
|
||||
|
|
|
@ -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