From f3de61a3b8c580a720994447bb7b37cd5dc2cea9 Mon Sep 17 00:00:00 2001 From: pilotnbr1 Date: Thu, 7 Dec 2023 19:06:54 -0500 Subject: [PATCH] Fix for FC reboot/shutdown --- app/telemetry/action/create_cmd_helper.hpp | 4 ++-- qml/ui/configpopup/status/StatusCardsColumn.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/telemetry/action/create_cmd_helper.hpp b/app/telemetry/action/create_cmd_helper.hpp index b383a45df..cc3ae2b0f 100644 --- a/app/telemetry/action/create_cmd_helper.hpp +++ b/app/telemetry/action/create_cmd_helper.hpp @@ -11,8 +11,8 @@ static mavlink_command_long_t create_cmd_reboot(int target_sysid,int target_comp cmd.target_system=target_sysid; cmd.target_component=target_compid; cmd.command=MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN; - cmd.param1=0; - cmd.param2=(reboot ? 1 : 2); + cmd.param1=(reboot ? 1 : 2); + //cmd.param2=(reboot ? 1 : 2); return cmd; } diff --git a/qml/ui/configpopup/status/StatusCardsColumn.qml b/qml/ui/configpopup/status/StatusCardsColumn.qml index 9768c5c75..90d9e5338 100644 --- a/qml/ui/configpopup/status/StatusCardsColumn.qml +++ b/qml/ui/configpopup/status/StatusCardsColumn.qml @@ -71,7 +71,7 @@ Row{ hasFooter: true cardFooter: FooterRebootShutdownWarning{ - m_supports_reboot_actions: false + m_supports_reboot_actions: true m_type: 2 } }