Sub: Clean up parameter conversion code

This commit is contained in:
Jacob Walser 2017-02-17 14:04:20 -05:00 committed by Andrew Tridgell
parent dcafb2c894
commit 7b214a0088
1 changed files with 1 additions and 4 deletions

View File

@ -978,8 +978,5 @@ void Sub::convert_old_parameters(void)
};
const uint16_t old_aux_chan_mask = 0x3FF0;
// note that we don't pass in rcmap as we don't want output channel functions changed based on rcmap
if (SRV_Channels::upgrade_parameters(old_rc_keys, old_aux_chan_mask, nullptr)) {
// the rest needs to be done after motors allocation
// upgrading_frame_params = true;
}
SRV_Channels::upgrade_parameters(old_rc_keys, old_aux_chan_mask, nullptr);
}