Fwd: Cell_log > gsmmap

Peter Stuge peter at stuge.se
Tue Jan 25 19:24:44 UTC 2011


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




More information about the baseband-devel mailing list