|
|
@ -102,12 +102,11 @@ static void sighandler(int signum) |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
uint8_t bcnt, uninit = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx) |
|
|
|
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx) |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint32_t i, lost = 0; |
|
|
|
uint32_t i, lost = 0; |
|
|
|
int64_t ns; |
|
|
|
int64_t ns; |
|
|
|
|
|
|
|
static uint8_t bcnt, uninit = 1; |
|
|
|
|
|
|
|
|
|
|
|
if (uninit) { |
|
|
|
if (uninit) { |
|
|
|
bcnt = buf[0]; |
|
|
|
bcnt = buf[0]; |
|
|
|