mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
AP_Param: Fix compiler warning on Flymaple
This commit is contained in:
parent
4c65c42411
commit
2e061fc507
@ -1105,7 +1105,7 @@ void AP_Param::convert_old_parameter(const struct ConversionInfo *info)
|
||||
}
|
||||
|
||||
// see if they are the same type
|
||||
if (ptype == header.type) {
|
||||
if (ptype == (ap_var_type)header.type) {
|
||||
// copy the value over only if the new parameter does not already
|
||||
// have the old value (via a default).
|
||||
if (memcmp(ap2, ap, sizeof(old_value)) != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user