mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 19:27:34 +08:00
gps: Increase param name buffer to address warning in newer gccs (#19876)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user