Update README, style fix

This commit is contained in:
Christian W. Zuckschwerdt 2018-11-22 08:46:45 +01:00
parent 750232b081
commit 09b5921c8c
4 changed files with 16 additions and 12 deletions

View file

@ -22,7 +22,12 @@ Running:
rtl_433 -h
```
Usage: = Tuner options =
Usage: = General options =
[-q] Quiet mode, suppress non-data messages
[-D] Print debug info on event (repeat for more info)
[-V] Output the version string and exit
[-c <path>] Read config options from a file
= Tuner options =
[-d <RTL-SDR USB device index> | :<RTL-SDR USB device serial> | <SoapySDR device query>]
[-g <gain>] (default: auto)
[-f <frequency>] [-f...] Receive frequency(s) (default: 433920000 Hz)
@ -31,6 +36,7 @@ Usage: = Tuner options =
[-s <sample rate>] Set sample rate (default: 250000 Hz)
= Demodulator options =
[-R <device>] Enable only the specified device decoding protocol (can be used multiple times)
Specify a negative number to disable a device decoding protocol (can be used multiple times)
[-G] Enable all device protocols, included those disabled by default
[-X <spec> | help] Add a general purpose decoder (-R 0 to disable all other decoders)
[-l <level>] Change detection level used to determine pulses [0-16384] (0 = auto) (default: 0)
@ -42,8 +48,6 @@ Usage: = Tuner options =
[-A] Pulse Analyzer. Enable pulse analysis and decode attempt.
Disable all decoders with -R 0 if you want analyzer output only.
[-I] Include only: 0 = all (default), 1 = unknown devices, 2 = known devices
[-D] Print debug info on event (repeat for more info)
[-q] Quiet mode, suppress non-data messages
[-y <code>] Verify decoding of demodulated test data (e.g. "{25}fb2dd58") with enabled devices
= File I/O options =
[-t] Test signal auto save. Use it together with analyze mode (-a -t). Creates one file per signal
@ -58,7 +62,6 @@ Usage: = Tuner options =
[-T] Specify number of seconds to run
[-U] Print timestamps in UTC (this may also be accomplished by invocation with TZ environment variable set).
[-E] Stop after outputting successful event(s)
[-V] Output the version string and exit
[-h] Output this usage help and exit
Use -d, -g, -R, -X, -F, -r, or -w without argument for more help

View file

@ -53,7 +53,7 @@ require_clean_work_tree()
# Get the help text
try:
help_text = subprocess.check_output(
["./build/src/rtl_433", "-R"], stderr=subprocess.STDOUT)
["./build/src/rtl_433", "-c", "-0", "-R"], stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
help_text = e.output

View file

@ -1175,7 +1175,8 @@ static void parse_conf_option(struct app_cfg *cfg, int opt, char *arg)
if (n == 0 || (n > 0 && !cfg->no_default_devices)) {
for (i = 0; i < cfg->num_r_devices; i++) {
cfg->devices[i].disabled = 1;
if (!cfg->devices[i].disabled)
cfg->devices[i].disabled = 1;
}
cfg->no_default_devices = 1;
}

View file

@ -26,6 +26,9 @@
<ClInclude Include="..\include\bitbuffer.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\confparse.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\data.h">
<Filter>Header Files</Filter>
</ClInclude>
@ -59,9 +62,6 @@
<ClInclude Include="..\src\getopt\getopt.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\include\confparse.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\am_analyze.c">
@ -73,6 +73,9 @@
<ClCompile Include="..\src\bitbuffer.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\confparse.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\src\data.c">
<Filter>Source Files</Filter>
</ClCompile>
@ -388,8 +391,5 @@
<ClCompile Include="..\src\devices\x10_sec.c">
<Filter>Source Files\devices</Filter>
</ClCompile>
<ClCompile Include="..\src\confparse.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>