diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-08-20 13:37:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-08-20 13:37:52 +0000 |
commit | 8f3d32f960201053ac2e93247f8488e6f7e7df5b (patch) | |
tree | 4adbf7093d0e093e6086b6fc9d6aa16135001438 /sirf.c | |
parent | 58afacedd75d05e693acc42a6c281dbe81436c98 (diff) | |
download | gpsd-8f3d32f960201053ac2e93247f8488e6f7e7df5b.tar.gz |
Minor optimization using internal statics, thanks to Remco for the reminder.
Diffstat (limited to 'sirf.c')
-rw-r--r-- | sirf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ static bool sirf_speed(int ttyfd, speed_t speed) /* change speed in binary mode */ { /*@ +charint @*/ - unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x09, + static unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x09, 0x86, 0x0, 0x0, 0x12, 0xc0, /* 4800 bps */ 0x08, /* 8 data bits */ @@ -92,7 +92,7 @@ static bool sirf_to_nmea(int ttyfd, speed_t speed) /* switch from binary to NMEA at specified baud */ { /*@ +charint @*/ - unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x18, + static unsigned char msg[] = {0xa0, 0xa2, 0x00, 0x18, 0x81, 0x02, 0x01, 0x01, /* GGA */ 0x00, 0x00, /* suppress GLL */ |