Skip to content

Commit 8e813dd

Browse files
committed
minor: Fix help text for D option
1 parent a816bc7 commit 8e813dd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

conf/rtl_433.example.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#sample_rate 250k
7272

7373
# as command line option:
74-
# [-D restart | pause | quit | manual] Input device run mode options.
74+
# [-D quit | restart | pause | manual] Input device run mode options (default: quit).
7575
# default is "quit"
7676
#device_mode quit
7777

src/rtl_433.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void usage(int exit_code)
159159
" [-H <seconds>] Hop interval for polling of multiple frequencies (default: %d seconds)\n"
160160
" [-p <ppm_error>] Correct rtl-sdr tuner frequency offset error (default: 0)\n"
161161
" [-s <sample rate>] Set sample rate (default: %d Hz)\n"
162-
" [-D restart | pause | quit | manual] Input device run mode options.\n"
162+
" [-D quit | restart | pause | manual] Input device run mode options (default: quit).\n"
163163
"\t\t= Demodulator options =\n"
164164
" [-R <device> | help] Enable only the specified device decoding protocol (can be used multiple times)\n"
165165
" Specify a negative number to disable a device decoding protocol (can be used multiple times)\n"
@@ -260,12 +260,12 @@ static void help_device_mode(void)
260260
{
261261
term_help_fprintf(stdout,
262262
"\t\t= Input device run mode =\n"
263-
" [-D restart | pause | quit | manual] Input device run mode options.\n"
263+
" [-D quit | restart | pause | manual] Input device run mode options (default: quit).\n"
264264
"\tSupported input device run modes:\n"
265+
"\t quit: Quit on input device errors (default)\n"
265266
"\t restart: Restart the input device on errors\n"
266267
"\t pause: Pause the input device on errors, waits for e.g. HTTP-API control\n"
267-
"\t quit: Quit on input device errors (default)\n"
268-
"\t manual: Don't start an input device, waits for e.g. HTTP-API control\n"
268+
"\t manual: Do not start an input device, waits for e.g. HTTP-API control\n"
269269
"\tWithout this option the default is to start the SDR and quit on errors.\n");
270270
exit(0);
271271
}
@@ -922,7 +922,7 @@ static void parse_conf_option(r_cfg_t *cfg, int opt, char *arg)
922922
help_device_mode();
923923

924924
if (strcmp(arg, "quit") == 0) {
925-
cfg->dev_mode = DEVICE_MODE_RESTART;
925+
cfg->dev_mode = DEVICE_MODE_QUIT;
926926
}
927927
else if (strcmp(arg, "restart") == 0) {
928928
cfg->dev_mode = DEVICE_MODE_RESTART;

0 commit comments

Comments
 (0)