diff options
Diffstat (limited to 'astro')
-rw-r--r-- | astro/gpsdrive/files/patch-src::gpsserial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astro/gpsdrive/files/patch-src::gpsserial.c b/astro/gpsdrive/files/patch-src::gpsserial.c index b6dc660603d8..531570d64224 100644 --- a/astro/gpsdrive/files/patch-src::gpsserial.c +++ b/astro/gpsdrive/files/patch-src::gpsserial.c @@ -5,8 +5,8 @@ CREAD : enable receiving characters */ - newtio.c_cflag = (11 + serialspeed) | CS8 | CLOCAL | CREAD; -+ int t[] = { 2400, 4800, 9600, 19200, 38400 }; -+ newtio.c_ispeed = newtio.c_ospeed = t[serialspeed]; ++ { int t[] = { 2400, 4800, 9600, 19200, 38400 }; ++ newtio.c_ispeed = newtio.c_ospeed = t[serialspeed]; } + newtio.c_cflag = CS8 | CLOCAL | CREAD; newtio.c_cflag &= ~(PARENB | CRTSCTS); /* |