Commit Graph

18 Commits

Author SHA1 Message Date
hayati ayguen 91ef34d922 improve CLI usage docs: '-d' also accepts serial
commit e30dbd52b638629d58ae6e33ebcf5a2d71a768a5 in https://github.com/librtlsdr/librtlsdr

Signed-off-by: hayati ayguen <h_ayguen@web.de>
[F. Schmidt: rebased on latest master]
Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2024-02-16 17:27:28 +01:00
Tobias Girstmair 142325a93c Fix signal handler from getting stuck in an endless loop
The signal handler for SIGINT/TERM/QUIT and, importantly, SIGPIPE tries
to write an informational message to stderr. When however stderr is
redirected to a closed pipe, this will cause (another) SIGPIPE, and in
turn the signal handler will get called again, and again and again.

Since we intend to exit rtl_fm anyways, we can just ignore this signal.
2022-12-17 21:18:49 +01:00
A. Maitland Bottoms f2a9a81c4b rtl_fm/rtl_power: Improve scanning range parsing 2020-02-26 22:16:29 +01:00
David Woodhouse 9047eef701 Fix inline functions to use 'static inline'
With just 'inline', if the compiler decides not to inline them, it isn't
required to emit them at all. For some targets with -Os that is causing
build failures, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86360.

Perhaps we might consider using '__attribute__((always_inline))' for
GCC builds, but 'static inline' is a good start.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-07-03 23:59:01 +02:00
hayati ayguen 18bf26989c Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp)
* added debug output when activating
Signed-off-by: hayati ayguen <h_ayguen@web.de>
* fixed options argument
Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2017-06-13 01:20:32 +02:00
Hoernchen 5c376fc79c tools: allow built-in functions for newer versions of MSVC 2015-06-09 01:37:46 +02:00
Steve Markgraf 50743b1ccb remove unused variables, type fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:53:24 +01:00
Kyle Keen f459214894 rtl_power: fix dBm math
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:26:41 +01:00
Kyle Keen 27c0929939 utils: convenience functions
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:21:23 +01:00
Kyle Keen 3ab6fffbdd rtl_power: MSVC 2010 doesn't have log2()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-27 00:41:49 +01:00
Kyle Keen fca2b7d52f rtl_power: apply first series of patches
* fix typos
* droop compensation
* improve sample rates, peak hold
* direct sampling
* offset tuning

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-26 19:29:53 +01:00
Steve Markgraf aced2dbd0e rtl_fm/power: unbreak MinGW build
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-18 21:36:19 +01:00
Kyle Keen c5b8a21300 rtl_power: more lowpass options
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-05 20:58:17 +01:00
Kyle Keen 8f1d108122 rtl_power: nicer errors, low pass, low bw
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-05 20:58:11 +01:00
Kyle Keen 968b6fbfdc rtl_power: clean ^C, cropped bins, +32k bins
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-05 20:58:01 +01:00
Hoernchen dbede4e3c0 tools: play nice with mingw/cygwin 2013-10-25 01:11:44 +02:00
Hoernchen 7614a4d684 tools: minor win fix 2013-10-25 00:04:17 +02:00
Kyle Keen dbc49549a0 add new tool: rtl_power
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-10-24 23:46:16 +02:00