|
|
|
@ -325,7 +325,7 @@ GPS::GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interfac
@@ -325,7 +325,7 @@ GPS::GPS(const char *path, gps_driver_mode_t mode, GPSHelper::Interface interfac
|
|
|
|
|
|
|
|
|
|
if (_mode == gps_driver_mode_t::None) { |
|
|
|
|
// use parameter to select mode if not provided via CLI
|
|
|
|
|
char protocol_param_name[16]; |
|
|
|
|
char protocol_param_name[17]; |
|
|
|
|
snprintf(protocol_param_name, sizeof(protocol_param_name), "GPS_%i_PROTOCOL", (int)_instance + 1); |
|
|
|
|
int32_t protocol = 0; |
|
|
|
|
param_get(param_find(protocol_param_name), &protocol); |
|
|
|
|