mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 18:47:34 +08:00
MAVLink app: Fix for hardware multiplier resetting to 1 once limitation was overcome.
This commit is contained in:
@@ -1282,6 +1282,9 @@ Mavlink::update_rate_mult()
|
||||
/* limit to a max multiplier of 1 */
|
||||
hardware_mult = fminf(1.0f, hardware_mult);
|
||||
}
|
||||
} else {
|
||||
/* no limitation, set hardware to 1 */
|
||||
hardware_mult = 1.0f;
|
||||
}
|
||||
|
||||
_last_hw_rate_timestamp = tstatus.timestamp;
|
||||
|
||||
Reference in New Issue
Block a user