On Fri, May 14, 2021 at 01:33:44PM +0200, Lars Munch wrote: > Add serial baudrate configuration option. Default to 9600 bps. > > Signed-off-by: Lars Munch <l...@segv.dk> > --- > config.c | 1 + > ts2phc.8 | 23 ++++++++++++----------- > ts2phc_nmea_master.c | 10 +++++----- > 3 files changed, 18 insertions(+), 16 deletions(-) > > diff --git a/config.c b/config.c > index 4472d3d..a42a57f 100644 > --- a/config.c > +++ b/config.c > @@ -319,6 +319,7 @@ struct config_item config_tab[] = { > GLOB_ITEM_STR("ts2phc.nmea_remote_host", ""), > GLOB_ITEM_STR("ts2phc.nmea_remote_port", ""), > GLOB_ITEM_STR("ts2phc.nmea_serialport", "/dev/ttyS0"), > + PORT_ITEM_INT("ts2phc.nmea_baudrate", 9600, 0, INT_MAX),
In the future, please preserve alphabetical order of the options strings. Otherwise, the patch is fine. I'll fix the order myself. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel