mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 03:41:36 +08:00
MAVLink app: Do not warn about required reboot but rely on param meta. Fixes #7642
This commit is contained in:
@@ -611,17 +611,6 @@ void Mavlink::mavlink_update_system()
|
|||||||
_param_initialized = true;
|
_param_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* warn users that they need to reboot to take this
|
|
||||||
* into effect
|
|
||||||
*/
|
|
||||||
if (system_id != mavlink_system.sysid) {
|
|
||||||
send_statustext_critical("Save params and reboot to change SYSID");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (component_id != mavlink_system.compid) {
|
|
||||||
send_statustext_critical("Save params and reboot to change COMPID");
|
|
||||||
}
|
|
||||||
|
|
||||||
int32_t system_type;
|
int32_t system_type;
|
||||||
param_get(_param_system_type, &system_type);
|
param_get(_param_system_type, &system_type);
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
* @group MAVLink
|
* @group MAVLink
|
||||||
* @min 1
|
* @min 1
|
||||||
* @max 250
|
* @max 250
|
||||||
|
* @reboot_required true
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(MAV_SYS_ID, 1);
|
PARAM_DEFINE_INT32(MAV_SYS_ID, 1);
|
||||||
|
|
||||||
@@ -44,6 +45,7 @@ PARAM_DEFINE_INT32(MAV_SYS_ID, 1);
|
|||||||
* @group MAVLink
|
* @group MAVLink
|
||||||
* @min 1
|
* @min 1
|
||||||
* @max 250
|
* @max 250
|
||||||
|
* @reboot_required true
|
||||||
*/
|
*/
|
||||||
PARAM_DEFINE_INT32(MAV_COMP_ID, 1);
|
PARAM_DEFINE_INT32(MAV_COMP_ID, 1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user