mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 15:43:34 +08:00
AirModeYaw - Change airmode type from bool to int
This commit is contained in:
@@ -428,9 +428,7 @@ void UavcanNode::update_params()
|
||||
param_t param_handle = param_find("MC_AIRMODE");
|
||||
|
||||
if (param_handle != PARAM_INVALID) {
|
||||
int32_t val;
|
||||
param_get(param_handle, &val);
|
||||
_airmode = val > 0;
|
||||
param_get(param_handle, &_airmode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user