kopia lustrzana https://github.com/Hamlib/Hamlib
Move memcpy of deprecated structure in rotator.c and add memcpy to amplifier.c
https://github.com/Hamlib/Hamlib/issues/960pull/976/head
rodzic
43f8a1d680
commit
2f38a32b0a
|
@ -416,6 +416,8 @@ int HAMLIB_API amp_open(AMP *amp)
|
|||
}
|
||||
}
|
||||
|
||||
memcpy(&->state.ampport_deprecated, &->state.ampport,
|
||||
sizeof(amp->state.ampport_deprecated));
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
|
|
@ -470,9 +470,6 @@ int HAMLIB_API rot_open(ROT *rot)
|
|||
return -RIG_EINVAL;
|
||||
}
|
||||
|
||||
memcpy(&rot->state.rotport_deprecated, &rot->state.rotport,
|
||||
sizeof(rot->state.rotport_deprecated));
|
||||
|
||||
add_opened_rot(rot);
|
||||
|
||||
rs->comm_state = 1;
|
||||
|
@ -491,6 +488,9 @@ int HAMLIB_API rot_open(ROT *rot)
|
|||
}
|
||||
}
|
||||
|
||||
memcpy(&rot->state.rotport_deprecated, &rot->state.rotport,
|
||||
sizeof(rot->state.rotport_deprecated));
|
||||
|
||||
return RIG_OK;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue