Skip to content

Commit 1a2de05

Browse files
committed
Better error message.
1 parent 07f2174 commit 1a2de05

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

beacon.c

+9
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ void beacon_init (struct audio_s *pmodem, struct misc_config_s *pconfig, struct
221221
text_color_set(DW_COLOR_ERROR);
222222
dw_printf ("Config file, line %d: GPS must be configured to use TBEACON.\n", g_misc_config_p->beacon[j].lineno);
223223
g_misc_config_p->beacon[j].btype = BEACON_IGNORE;
224+
#if __WIN32__
225+
dw_printf ("You must specify the GPSNMEA command in your configuration file.\n");
226+
dw_printf ("This contains the name of the serial port where the receiver is connected.\n");
227+
#else
228+
dw_printf ("You must specify the source of the GPS data in your configuration file.\n");
229+
dw_printf ("It can be either GPSD, meaning the gpsd daemon, or GPSNMEA for\n");
230+
dw_printf ("for a serial port connection with exclusive use.\n");
231+
#endif
232+
224233
}
225234
}
226235
break;

0 commit comments

Comments
 (0)