philrandal / gpsctl

GPS control and configuration for U-Blox GPS on Raspberry Pi 3B...
MIT License
45 stars 4 forks source link

-p argument not parsing? #16

Closed brandonros closed 3 years ago

brandonros commented 3 years ago
$ ./gpsctl -p /dev/cu.usbmodemTAhJALxt1
Error: device "/dev/serial0" is not a terminal
philrandal commented 3 years ago

We read gpsctl:port from gpsctl.conf before parsing the commandline parameters (gpsctl.c line 1395).

The code might need refactoring to process the commandline first and ignore the config file value if -p is specified.

The workaround is to specify the serial port in gpsctl.conf instead of via -p on the commandline.

I'll take a look at this in the next day or two.

philrandal commented 3 years ago

Fixed in gpsctl v1.16