MAVLink app: Fix for hardware multiplier resetting to 1 once limitation was overcome.

This commit is contained in:
Lorenz Meier 2015-08-08 00:07:09 +02:00
parent 7d07fc98ba
commit e829eb0670
1 changed files with 3 additions and 0 deletions

View File

@ -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;