25 Jan
2011
25 Jan
'11
8:24 p.m.
Dario Lombardo wrote:
Very good. This is the new patch that should fix both. ..
+ printf(" -g --gps DEVICE /dev/ttyACM0. GPS device.\n"); + printf(" -b --baud BAUDRATE The baud rate of the GPS device\n");
What is the default baud rate? And where in the code are these defaults being set?
@@ -118,6 +123,16 @@ static int l23_cfg_handle(int c, const char *optarg) case 'n': RACH_MAX = 0; break; + case 'g': + snprintf(gps.device, ARRAY_SIZE(gps.device), "%s", optarg); + // force string terminator + gps.device[ARRAY_SIZE(gps.device - 1)] = '\0';
-1 should be outside the parentheses. //Peter