diff options
| author | Jason Reiss <jreiss@multitech.com> | 2017-01-17 14:32:25 -0600 |
|---|---|---|
| committer | Jason Reiss <jreiss@multitech.com> | 2017-01-17 14:32:25 -0600 |
| commit | bf44a677041abcef9f224de290fcd5ad4cf37ea8 (patch) | |
| tree | 263308ac22db5128374d26c857d12d1a79a251e8 /recipes-navigation/gpsd/gpsd-3.16/0005-suppress-text-in-binary.patch | |
| parent | e16cbd0bf5b2985cd78a26a82868d5cd3eb96da2 (diff) | |
| parent | 3959907c3a6a8d78368de3c624155260a2d418fe (diff) | |
| download | meta-mlinux-bf44a677041abcef9f224de290fcd5ad4cf37ea8.tar.gz meta-mlinux-bf44a677041abcef9f224de290fcd5ad4cf37ea8.tar.bz2 meta-mlinux-bf44a677041abcef9f224de290fcd5ad4cf37ea8.zip | |
Merge branch 'master' of gitlab.multitech.net:mirrors/meta-mlinux
Diffstat (limited to 'recipes-navigation/gpsd/gpsd-3.16/0005-suppress-text-in-binary.patch')
| -rw-r--r-- | recipes-navigation/gpsd/gpsd-3.16/0005-suppress-text-in-binary.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd-3.16/0005-suppress-text-in-binary.patch b/recipes-navigation/gpsd/gpsd-3.16/0005-suppress-text-in-binary.patch new file mode 100644 index 0000000..f338126 --- /dev/null +++ b/recipes-navigation/gpsd/gpsd-3.16/0005-suppress-text-in-binary.patch @@ -0,0 +1,30 @@ +diff -u old/gpsctl.c new/gpsctl.c +--- old/gpsctl.c 2017-01-03 15:57:50.517120891 -0600 ++++ new/gpsctl.c 2017-01-03 18:31:21.421101434 -0600 +@@ -175,7 +175,7 @@ + int option, status; + char *device = NULL, *devtype = NULL; + char *speed = NULL, *control = NULL, *rate = NULL; +- bool to_binary = false, to_nmea = false, reset = false; ++ bool to_binary = false, to_nmea = false, reset = false, control_string = false; + bool lowlevel=false, echo=false; + struct gps_data_t gpsdata; + const struct gps_type_t *forcetype = NULL; +@@ -205,6 +205,7 @@ + #ifdef CONTROLSEND_ENABLE + control = optarg; + lowlevel = true; ++ control_string = true; + if ((cooklen = hex_escapes(cooked, control)) <= 0) { + gpsd_log(&context.errout, LOG_ERROR, + "invalid escape string (error %d)\n", (int)cooklen); +@@ -704,7 +705,8 @@ + } + } + +- (void)printf("%s identified as a %s at %u baud.\n", ++ if(!control_string) ++ (void)printf("%s identified as a %s at %u baud.\n", + device, gpsd_id(&session), + session.gpsdata.dev.baudrate); + |
