mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 18:20:36 +08:00
commander remove continuous param_get in arm_auth_update
This commit is contained in:
committed by
Lorenz Meier
parent
641129ad4e
commit
49180de27c
@@ -179,9 +179,11 @@ uint8_t arm_auth_check()
|
||||
return vehicle_command_ack_s::VEHICLE_RESULT_DENIED;
|
||||
}
|
||||
|
||||
void arm_auth_update(hrt_abstime now)
|
||||
void arm_auth_update(hrt_abstime now, bool param_update)
|
||||
{
|
||||
param_get(param_arm_parameters, (int32_t*)&arm_parameters);
|
||||
if (param_update) {
|
||||
param_get(param_arm_parameters, (int32_t*)&arm_parameters);
|
||||
}
|
||||
|
||||
switch (state) {
|
||||
case ARM_AUTH_WAITING_AUTH:
|
||||
|
||||
Reference in New Issue
Block a user